Files
x86-bare-metal-examples/interrupt1.S
2018-12-04 09:46:27 +00:00

16 lines
328 B
ArmAsm

/* https://github.com/cirosantilli/x86-bare-metal-examples#interrupts */
#include "common.h"
BEGIN
CLEAR
/* Set address of the handler for interrupt 1. */
movw $handler, 0x04
/* Set code segment of the handler for interrupt 1. */
mov %cs, 0x06
int $1
PUTC $'b
hlt
handler:
PUTC $'a
iret