gtty.s 211 B

123456789101112131415
  1. .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
  2. .define _gtty
  3. .extern _gtty, _ioctl
  4. _gtty:
  5. push bp
  6. mov bp,sp
  7. push 6(bp)
  8. mov ax,0x5401
  9. push ax
  10. push 4(bp)
  11. call _ioctl
  12. add sp,6
  13. mov sp,bp
  14. pop bp
  15. ret