AminetAminet
Search:
84520 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/blitz/CIAs_in_Blitz.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Example of using CIA interrupts in Blitz
Author:anton at ww.co.nz (Anton Reinauer)
Uploader:anton ww co nz (Anton Reinauer)
Type:dev/blitz
Version:1.0
Requires:Blitz Basic2
Architecture:m68k-amigaos
Date:1999-06-13
Download:http://aminet.net/dev/blitz/CIAs_in_Blitz.lha - View contents
Readme:http://aminet.net/dev/blitz/CIAs_in_Blitz.readme
Downloads:556

  The Amiga has two CIA (complex interface adaptor) chips- CIA-A, and CIA-B.
This code can access either of the 2 general purpose Timers on these chips.
These timers can execute a section of code a set number of times a second
(you can change how many times a second they fire), independant of your
main code. This code is based on the CIA_Interval.c code on the developer
CD. You can set up a variable from your main program to be updated by the
Timer, or maybe set the interrupt to signal your main task after a set
period of time.

  The CIA resource is a system legal way of allocating the timers, so your
program can check if a timer is being used by another task, if it isn't
then it can allocate it for itself.
  


Contents of dev/blitz/CIAs_in_Blitz.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[generic]                 2254    8038  28.0% -lh5- 0303 Jun 13  1999 CIA-Examples/Cia-Find_Owners.asc
[generic]                 2158    6967  31.0% -lh5- 71cd Jun 13  1999 CIA-Examples/Cia-OS_Start.asc
[generic]                 2157    7096  30.4% -lh5- 5fdc Jun 13  1999 CIA-Examples/Cia.asc
[generic]                 2282    5264  43.4% -lh5- 3e76 Jun 13  1999 CIA-Examples/Cia.readme
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         4 files    8851   27365  32.3%            Jun 13  1999

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>