_sys_rawread.s 246 B

1234567891011121314151617181920212223
  1. #
  2. ! $Source$
  3. ! $State$
  4. ! $Revision$
  5. ! Declare segments (the order is important).
  6. .sect .text
  7. .sect .rom
  8. .sect .data
  9. .sect .bss
  10. .sect .text
  11. ! Reads a single byte.
  12. .define __sys_rawread
  13. __sys_rawread:
  14. xorb ah, ah
  15. int 0x16
  16. xorb ah, ah
  17. ret