_close.s 292 B

12345678910111213141516171819202122232425
  1. .define __close
  2. .sect .text
  3. .sect .rom
  4. .sect .data
  5. .sect .bss
  6. .sect .text
  7. .extern __close
  8. .sect .text
  9. __close:
  10. tst.b -40(sp)
  11. link a6,#-0
  12. move.w 8(a6), d2
  13. ext.l d2
  14. move.l d2,-(sp)
  15. jsr __Sclose
  16. add.l #4,sp
  17. unlk a6
  18. rts
  19. __Sclose: trap #0
  20. .data2 0x6
  21. bcc 1f
  22. jmp cerror
  23. 1:
  24. clr.l d0
  25. rts