lidt2.S 246 B

1234567891011121314151617
  1. /* https://github.com/cirosantilli/x86-bare-metal-examples#lidt */
  2. #include "common.h"
  3. BEGIN
  4. CLEAR
  5. movw $handler, 4
  6. mov %cs, 6
  7. movw $4, 8
  8. movl $4, 0xA
  9. lidt 8
  10. int $0
  11. PUTC $'b
  12. hlt
  13. handler:
  14. PUTC $'a
  15. iret