16 lines
180 B
ArmAsm
16 lines
180 B
ArmAsm
/*
|
|
Same as doing an `int $0`.
|
|
*/
|
|
|
|
#include "common.h"
|
|
BEGIN
|
|
CLEAR
|
|
movw $handler, 0x00
|
|
movw %cs, 0x02
|
|
mov $0, %ax
|
|
div %ax
|
|
hlt
|
|
handler:
|
|
PUTC $'a
|
|
iret
|