ack/mach/m68k4/libem/sys1.s

59 lines
692 B
ArmAsm
Raw Normal View History

1985-02-07 17:43:43 +00:00
.extern _errno
.data
_errno:
.extern _lseek
.short 0
.text
_lseek:
link a6,#-0
.data
_13:
.short 29561
.short 29489
.short 11875
.short 0
.text
move.l #_13,.filn
move.w #8,.lino
move.w #0,-(sp)
move.w #0,-(sp)
move.l (sp)+,d0
unlk a6
rts
.extern _close
_close:
link a6,#-0
move.l #_13,.filn
move.w #12,.lino
move.w #0,-(sp)
move.w (sp)+,d0
unlk a6
rts
.extern _ioctl
_ioctl:
link a6,#-0
move.l #_13,.filn
move.w #18,.lino
move.w #0,-(sp)
move.w (sp)+,d0
unlk a6
rts
.extern _read
_read:
link a6,#-0
move.l #_13,.filn
move.w #24,.lino
move.w #-1,-(sp)
move.w (sp)+,d0
unlk a6
rts
.extern _open
_open:
link a6,#-0
move.l #_13,.filn
move.w #30,.lino
move.w #-1,-(sp)
move.w (sp)+,d0
unlk a6
rts