bios_pixel_line.S 320 B

1234567891011121314151617181920212223
  1. /*
  2. Draw a 45 degree line of pixels to the screen on 13h video mode.
  3. */
  4. #include "common.h"
  5. BEGIN
  6. mov $0x0013, %ax
  7. int $0x10
  8. mov $0x0000, %cx
  9. mov $0x0000, %dx
  10. start:
  11. mov $0x0C88, %ax
  12. mov $0x01, %bh
  13. int $0x10
  14. inc %cx
  15. inc %dx
  16. cmp $201, %dx
  17. jz end
  18. jmp start
  19. end:
  20. hlt
  21. END