home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 6
/
Sonderheft_6-96.iso
/
pd
/
disktools
/
softrack
/
source
/
getunitid.s
next >
Wrap
Text File
|
1996-11-03
|
624b
|
28 lines
; GetUnitID.s
; informs the main program of the presence of disk drives.
; To be Assembled with SAS/C 6.50 Assembler and linked with
; slink to produce SofTrack: 1> asm GetUnitID.s
; Written by Kamran Karimi.
DR_GetUnitID equ -30
XREF _DiskBase ; should be opened befor calling this routine
SECTION uid,CODE
XDEF _GetUnitID
_GetUnitID:
; amiga subroutines should only use d0, d1, a0 and a1 as
; scratch, so save a6
move.l a6,-(a7)
move.l 8(a7),d0 ; get at the parameter on the stack
move.l _DiskBase,a6
jsr DR_GetUnitID(a6) ; call the disk.resource routine
move.l (a7)+,a6 ; restore a6
rts
END