/asm/boot/gas/boot2.S

http://github.com/dennis-gemini/tests · Assembly · 21 lines · 18 code · 3 blank · 0 comment · 0 complexity · 2fabd1abb19c784f9c740300932da346 MD5 · raw file

  1. .code16
  2. .text
  3. mov %cs, %ax
  4. mov %ax, %ds
  5. mov %ax, %es
  6. call DispStr
  7. jmp .
  8. DispStr:
  9. mov $BootMessage, %ax
  10. mov %ax, %bp
  11. mov $16, %cx
  12. mov $0x1301, %ax
  13. mov $0x000c, %bx
  14. mov $0, %dl
  15. int $0x10
  16. ret
  17. .org 510
  18. .word 0xaa55