bios_hello_world.S 259 B

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