gtty.s 225 B

123456789101112131415161718
  1. .define _gtty
  2. .sect .text
  3. .sect .rom
  4. .sect .data
  5. .sect .bss
  6. .sect .text
  7. .extern _gtty
  8. .sect .text
  9. _gtty:
  10. tst.b -40(sp)
  11. link a6,#-0
  12. move.l 10(a6),-(sp)
  13. move.w #29704,-(sp)
  14. move.w 8(a6),-(sp)
  15. jsr _ioctl
  16. add.l #8,sp
  17. unlk a6
  18. rts