home *** CD-ROM | disk | FTP | other *** search
- ;write=3, read=2
- command = 2
- iolength = 512
- iodata = $50000
- iooffset = 512*2
-
- s: suba.l a1,a1
- move.l $4.w,a6
- jsr -294(a6)
- lea portadr(pc),a1
- move.l d0,16(a1)
- jsr -354(a6)
- lea iorequest(pc),a1
- lea portname(pc),a0
- moveq #0,d0 ;df0:
- moveq #0,d1
- jsr -444(a6)
- tst.l d0
- bne.s error
-
- lea iorequest(pc),a1
- move.w #command,$1c(a1)
- move.l #iolength,$24(a1)
- move.l #iodata,$28(a1)
- move.l #iooffset,$2c(a1)
- jsr -456(a6)
- move.w #9,$1c(a1)
- clr.l $24(a1)
- jsr -456(a6)
-
- jsr -450(a6)
- error: lea portadr(pc),a1
- jmp -360(a6)
-
- portadr:
- dc.l 0,0
- dc.b 4,0
- dc.l portname
- dc.b 0,31
- dc.l 0
- dc.l 0,0,0,0
- dc.b 0,0
- portname:
- dc.b 'trackdisk.device',0
- even
- iorequest:
- dc.l 0,0
- dc.b 5,0
- dc.l 0
- dc.l portadr
- dc.w 48
- dc.l 0,0
-
- dc.w 0,0
- dc.l 0,0,0,0