bios_cursor_position.S 255 B

123456789101112131415161718192021
  1. #include "common.h"
  2. BEGIN
  3. CLEAR
  4. /* Print "ab" */
  5. PUTC $'a
  6. PUTC $'b
  7. /* Move back to 0, 0.*/
  8. mov $0x02, %ah
  9. /* page number 0. TODO what is this? */
  10. mov $0x0, %bh
  11. /* DH=0 row, DL=0 col */
  12. mov $0x0, %dx
  13. int $0x10
  14. /* Overwrite 'a' with c'. */
  15. PUTC $'c
  16. hlt