Files
x86-bare-metal-examples/interrupt_zero_divide.S
Ciro Santilli fb3c7e04c4 Move all documentation to README.adoc
This includes both separate .md files, and documentation that was on the
head of the .S source files.

Retest everything as this was done, and fix a few easy things.
2018-05-13 22:13:19 +01:00

21 lines
264 B
ArmAsm

#include "common.h"
BEGIN
CLEAR
movw $handler, 0x00
movw %cs, 0x02
mov $0, %ax
div %ax
hlt
handler:
mov myvar, %ax
incw myvar
PRINT_WORD_HEX
PRINT_NEWLINE
iret
myvar:
#if 1
.word 0x0000
#else
.word 0x0090
#endif