_gtty.s 216 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