2023-03-08 07:26:28 +00:00
|
|
|
.ORG 0x84 /* INT 21 */
|
|
|
|
DW 0xFFFF /*Code Segment*/
|
|
|
|
DW 0x014c /*Program Counter*/
|
|
|
|
|
|
|
|
.ORG 0x0100
|
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
|
|
|
|
TEST CH,#0x70
|
|
|
|
jz WAZZ
|
|
|
|
mov ah,#2
|
|
|
|
mov dl,#'1
|
|
|
|
int #0x21
|
|
|
|
hlt
|
|
|
|
WAZZ:
|
|
|
|
mov ah,#2
|
|
|
|
mov dl,#'0
|
|
|
|
int #0x21
|
|
|
|
hlt
|
2023-03-03 06:29:06 +00:00
|
|
|
TEST_:
|
|
|
|
ADD AX,#0xDEAD
|
|
|
|
RET
|
|
|
|
|
|
|
|
.BLKB 10
|
|
|
|
STACK:
|
2023-03-08 07:26:28 +00:00
|
|
|
|
|
|
|
.ORG 0xFFF0
|
|
|
|
MOV AX,#0x0100
|
|
|
|
JMP AX
|