_sys_rawwrite.s 337 B

1234567891011121314151617181920212223242526272829
  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. ! Writes a single byte to the console.
  12. .define __sys_rawwrite
  13. .extern __sys_rawwrite
  14. __sys_rawwrite:
  15. push bp
  16. mov bp, sp
  17. movb al, 4(bp)
  18. movb ah, 0x0E
  19. mov bx, 0x0007
  20. int 0x10
  21. jmp .cret