_wait.s 344 B

1234567891011121314151617
  1. .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
  2. .define __wait
  3. .extern __wait, cerror
  4. __wait:
  5. mov bx,sp
  6. mov ax,2 ! void info about unused memory
  7. ! Should be 0 according to /usr/include/sys.s, but
  8. ! that doesn't work
  9. push ax
  10. push 2(bx)
  11. push ax ! dummy return address
  12. int 0x87
  13. jb 9f
  14. add sp,6
  15. ret
  16. 9: add sp,6
  17. jmp cerror