2023-12-03 19:24:12 +00:00
|
|
|
.ORG 0xFF00
|
2023-02-15 03:53:05 +00:00
|
|
|
start:
|
2023-03-03 06:29:06 +00:00
|
|
|
MOV SP,#STACK
|
2023-02-10 15:35:43 +00:00
|
|
|
MOV AX,#0x0000
|
|
|
|
MOV CX,#0x0000
|
|
|
|
MOV BX,#0x0000
|
2023-03-03 06:29:06 +00:00
|
|
|
CALL TEST_
|
2023-02-10 14:08:39 +00:00
|
|
|
ADD CX,#0xBEEF
|
|
|
|
ADD CX,#0x4111
|
2023-02-11 14:43:53 +00:00
|
|
|
mov AX,#0x00FF
|
|
|
|
inc AL
|
|
|
|
mov AX,#0x00FF
|
|
|
|
inc ax
|
2023-02-10 14:08:39 +00:00
|
|
|
ADD AX,#0x2200
|
2023-02-15 03:53:05 +00:00
|
|
|
MOV SI,#0x0101
|
2023-02-15 01:28:02 +00:00
|
|
|
MOV [SI],AX
|
2023-02-15 03:53:05 +00:00
|
|
|
inc [si]
|
|
|
|
inc [si]
|
|
|
|
inc [si]
|
|
|
|
dec [si]
|
2023-02-16 01:46:22 +00:00
|
|
|
dec cx
|
2023-02-15 03:53:05 +00:00
|
|
|
cmp CX,#0x00
|
2023-02-24 10:08:01 +00:00
|
|
|
MOV CH,#0x9A
|
2023-11-25 04:11:51 +00:00
|
|
|
inw #0x20
|
2023-12-03 19:24:12 +00:00
|
|
|
CMP AX,#0xABCD
|
2023-02-24 10:08:01 +00:00
|
|
|
jz WAZZ
|
2023-11-25 04:11:51 +00:00
|
|
|
mov al,#'0
|
|
|
|
out byte #0xA5
|
2023-02-24 10:08:01 +00:00
|
|
|
hlt
|
|
|
|
WAZZ:
|
2023-11-25 04:11:51 +00:00
|
|
|
mov al,#'1
|
2023-12-03 19:24:12 +00:00
|
|
|
out byte #0xA5
|
2023-02-24 10:08:01 +00:00
|
|
|
hlt
|
2023-03-03 06:29:06 +00:00
|
|
|
TEST_:
|
|
|
|
ADD AX,#0xDEAD
|
|
|
|
RET
|
|
|
|
|
2023-03-14 07:20:30 +00:00
|
|
|
;quick&dirty
|
2023-03-09 06:02:41 +00:00
|
|
|
PRINT_INT_HANDLE:
|
|
|
|
push AX
|
|
|
|
MOV AL,DL
|
|
|
|
out byte #0xA5
|
|
|
|
POP AX
|
|
|
|
iret
|
|
|
|
|
2023-03-03 06:29:06 +00:00
|
|
|
.BLKB 10
|
|
|
|
STACK:
|
2023-03-08 07:26:28 +00:00
|
|
|
|
|
|
|
.ORG 0xFFF0
|
2023-12-03 19:24:12 +00:00
|
|
|
MOV AX,#0xFF00
|
2023-03-08 07:26:28 +00:00
|
|
|
JMP AX
|