bios_hello_world.S 266 B

123456789101112131415161718
  1. /* https://github.com/cirosantilli/x86-bare-metal-examples#bios-hello-world */
  2. #include "common.h"
  3. BEGIN
  4. DBG
  5. mov $msg, %si
  6. mov $0x0e, %ah
  7. loop:
  8. lodsb
  9. or %al, %al
  10. jz halt
  11. int $0x10
  12. jmp loop
  13. halt:
  14. hlt
  15. msg:
  16. .asciz "hello world"