home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Utilities
/
ACDPlay
/
src
/
V1.6
/
asmlib
/
ATAPI.s
< prev
next >
Wrap
Text File
|
1997-03-31
|
2KB
|
55 lines
******************************* CDUpdateA ******************************
*
* LONG CDUpdateA(register __a0 struct CDxRequest *cdx);
*
ATAPI_Update: bsr _CDTestUnitA
tst.l d0
bne .NoDisk
move.b #AUDIO_STAT_STOPPED,cdx_AudioStatus(a0)
move.b #AUDIO_STAT_STOPPED,cdx_Active(a0)
bra .EXIT
.NoDisk move.b #AUDIO_STAT_NO_DISK,cdx_AudioStatus(a0)
move.b #AUDIO_STAT_NO_DISK,cdx_Active(a0)
.EXIT rts
****************************** CDPauseA ********************************
*
* LONG CDPauseA(register __a0 struct CDxRequest *cdx, register __d0 BOOL really);
*
ATAPI_Pause: moveq #1,d1
tst.l d0
bne .goon
moveq #0,d1
.goon move.l cdx_IORequest(a0),a0
lea IO_LENGTH(a0),a1
move.l d1,(a1)+ ; IO_LENGTH
clr.l (a1)+ ; IO_DATA
clr.l (a1) ; IO_OFFSET
move.w #CD_PAUSE,IO_COMMAND(a0)
bsr DoATAPI
move.l IO_ACTUAL(a0),d0
rts
****************************** DoATAPI *********************************
*
* LONG DoATAPI(register __a0 struct IORequest *ioreq);
*
CNOP 0,2
DoATAPI: movem.l d1/a0-a1/a6,-(sp)
move.l 4.w,a6
move.l a0,a1
jsr _LVODoIO(a6)
.EXIT movem.l (sp)+,d1/a0-a1/a6
rts