bios_pixel.S 411 B

12345678910111213141516171819202122232425262728
  1. #include "common.h"
  2. BEGIN
  3. /* Enter video mode 13h. */
  4. mov $0x0013, %ax
  5. int $0x10
  6. start:
  7. /* Draw the pixel:
  8. *
  9. * * AH = 0Ch
  10. * * AL = Color
  11. * * BH = Page Number
  12. * * CX = x
  13. * * DX = y
  14. */
  15. mov $0x0C0C, %ax
  16. mov $0x01, %bh
  17. mov $0x0001, %cx
  18. mov $0x0001, %dx
  19. int $0x10
  20. inc %cx
  21. inc %dx
  22. cmp $201, %dx
  23. jz end
  24. jmp start
  25. end:
  26. hlt