nop.s 454 B

123456789101112131415161718192021222324
  1. .sect .text; .sect .rom; .sect .data; .sect .bss
  2. .sect .text
  3. .define .nop
  4. .extern printd, printc, hol0
  5. SIO_S = 0xDA
  6. SIO_D = 0xD8
  7. RXRDY = 0x02
  8. .nop:
  9. mov ax,(hol0)
  10. call printd
  11. ! movb al,' '
  12. ! call printc
  13. ! mov ax,sp
  14. ! call printd
  15. !1:
  16. ! inb SIO_S
  17. ! andb al,RXRDY
  18. ! jz 1b
  19. ! inb SIO_D
  20. ! call printc
  21. movb al,'\n'
  22. jmp printc