2023-05-19 16:59:20 +00:00
|
|
|
INCLUDE dos_layer.asm
|
|
|
|
|
|
|
|
|
|
|
|
org 0x100
|
|
|
|
mov sp,#STACK
|
|
|
|
|
|
|
|
MOV AX,#0x1
|
|
|
|
MOV BX,#0x1
|
|
|
|
|
2023-05-21 00:48:50 +00:00
|
|
|
CALL PRINT_16_HEX
|
2023-05-19 16:59:20 +00:00
|
|
|
|
|
|
|
push bx
|
|
|
|
MAIN_LOOP:
|
|
|
|
pop bx
|
|
|
|
|
2023-05-21 00:48:50 +00:00
|
|
|
CALL PRINT_16_HEX
|
2023-05-19 16:59:20 +00:00
|
|
|
|
|
|
|
push AX
|
|
|
|
ADD AX,BX
|
|
|
|
|
|
|
|
JNC MAIN_LOOP
|
|
|
|
pop bx
|
|
|
|
|
|
|
|
MOV AH,#0x02
|
|
|
|
MOV DL,#0x0a
|
|
|
|
INT #0x21
|
|
|
|
|
|
|
|
hlt
|
|
|
|
|
|
|
|
|
|
|
|
.BLKB 200
|
|
|
|
STACK:
|
2023-05-21 00:48:50 +00:00
|
|
|
INCLUDE helpers.asm
|
2023-05-19 16:59:20 +00:00
|
|
|
|
|
|
|
.ORG 0xFFF0
|
|
|
|
MOV AX,#0x0100
|
|
|
|
JMP AX
|
|
|
|
|