stty.s 211 B

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