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-FileDsp_RemoveInterrupts()Dsp_SetVectors() XBIOSSyntaxVOID Dsp_SetVectors( receiver, transmitter )
VOID (*receiver)();
LONG (*transmitter)();
Function Dsp_SetVectors() sets the location of application interrupt
handlers that are called when the DSP is either ready to
send or receive data.
Opcode 126 (0x7E)
Availability Available only when bit #3 of the '_SND' cookie is set.
Parameters receiver is the address of an interrupt handler which is
called when the DSP is ready to send a DSP word of data or
NULLFUNC ( VOID (*)() 0L ) if you do not wish to set this
interrupt. Likewise, transmitter is a pointer to an interrupt
handler which is called when the DSP is ready to receive
a DSP word of data or NULLFUNC if you do not wish to install
a transmitter interrupt. Any function installed to handle
transmitter interrupts should return a LONG which has one of
the following values:
Name transmitter Meaning
Return Value
DSPSEND_NOTHING 0x00000000 Do not send any data to the
DSP.
DSPSEND_ZERO 0xFF000000 Transmit a DSP word of 0 to
the DSP.
- Any other Transmit the low 24 bits to
the DSP.
Binding move.l #transmitter,-(sp)
move.l #receiver,-(sp)
move.w #$7E,-(sp)
trap #14
lea 10(sp),sp
Comments Use Dsp_RemoveInterrupts() to turn off interrupts set with
this call.
See Also Dsp_RemoveInterrupts()