Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-FileMfpint()Jenabint()Jdisint()Xbtimer() XBIOSSyntaxVOID Xbtimer( timer, control, data, hand )
WORD timer, control, data;
VOID (*hand)( VOID );
Function Xbtimer() sets an interrupt on the 68901 chip.
Opcode 31 (0x1F)
Availability All TOSversions.
Parameters timer is a value defining which timer to set as follows:
Name Timer Meaning
XB_TIMERA 0 Timer A (DMA sound counter)
XB_TIMERB 1 Timer B (Hblank counter)
XB_TIMERC 2 Timer C (200Hz system clock)
XB_TIMERD 3 Timer D (RS-232 baud rate generator)
control is placed into the control register of the timer.
data is placed in the data register of the timer. hand is
a pointer to the interrupt handler which is called by the
interrupt.
Binding pea hand
move.w data,-(sp)
move.w control,-(sp)
move.w timer,-(sp)
move.w #$1F,-(sp)
trap #14
lea 12(sp),sp
See Also Mfpint(), Jenabint(), Jdisint()