bios_pixel_line.S 323 B

1234567891011121314151617181920
  1. /* https://github.com/cirosantilli/x86-bare-metal-examples#bios-draw-pixel */
  2. #include "common.h"
  3. BEGIN
  4. mov $0x0013, %ax
  5. int $0x10
  6. mov $0x0000, %cx
  7. mov $0x0000, %dx
  8. start:
  9. mov $0x0C88, %ax
  10. mov $0x01, %bh
  11. int $0x10
  12. inc %cx
  13. inc %dx
  14. cmp $201, %dx
  15. jz end
  16. jmp start
  17. end:
  18. hlt