Files
x86-bare-metal-examples/lidt0.S

17 lines
246 B
ArmAsm
Raw Normal View History

2018-12-04 09:46:27 +00:00
/* https://github.com/cirosantilli/x86-bare-metal-examples#lidt */
#include "common.h"
BEGIN
CLEAR
movw $handler, 0
mov %cs, 2
movw $4, 8
movl $0, 0xA
lidt 8
int $0
PUTC $'b
hlt
handler:
PUTC $'a
iret