2015-09-24 10:17:28 +02:00
|
|
|
#include "common.h"
|
|
|
|
|
BEGIN
|
|
|
|
|
CLEAR
|
|
|
|
|
movw $handler, 0x00
|
2015-09-29 23:55:54 +02:00
|
|
|
movw %cs, 0x02
|
|
|
|
|
mov $0, %ax
|
2015-09-24 10:17:28 +02:00
|
|
|
div %ax
|
2015-10-21 21:41:07 +02:00
|
|
|
hlt
|
2015-09-24 10:17:28 +02:00
|
|
|
handler:
|
2018-05-06 14:33:33 +01:00
|
|
|
mov myvar, %ax
|
|
|
|
|
incw myvar
|
|
|
|
|
PRINT_WORD_HEX
|
|
|
|
|
PRINT_NEWLINE
|
2015-10-21 21:41:07 +02:00
|
|
|
iret
|
2018-05-06 14:33:33 +01:00
|
|
|
myvar:
|
|
|
|
|
#if 1
|
|
|
|
|
.word 0x0000
|
|
|
|
|
#else
|
|
|
|
|
.word 0x0090
|
|
|
|
|
#endif
|