ack/mach/m65oo2/libsys/gtty.s

16 lines
211 B
ArmAsm
Raw Permalink Normal View History

2024-02-22 15:13:52 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define _gtty
.extern _gtty, _ioctl
_gtty:
push bp
mov bp,sp
push 6(bp)
mov ax,0x5401
push ax
push 4(bp)
call _ioctl
add sp,6
mov sp,bp
pop bp
ret