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-FileGpio() XBIOSSyntaxLONG Gpio( mode, data )
WORD mode, data;
Function Gpio() reads/writes data over the general purpose pins on the
DSP connector.
Opcode 138 (0x8A)
Availability Available only when bit #3 of the '_SND' cookie is set.
Parameters mode specifies the meaning of data and the return value as
follows:
Name mode Meaning
GPIO_INQUIRE 0 Return the old value.
GPIO_READ 1 Read the three general purpose pins and
return their state in the lower three bits
of the returned value. data is ignored.
GPIO_WRITE 2 Write the lower three bits of data to the
corresponding DSP pins. The return value
is 0.
Binding move.w data,-(sp)
move.w mode,-(sp)
move.w #$8A,-(sp)
trap #14
addq.l #6,sp