33 lines
350 B
NASM
33 lines
350 B
NASM
start:
|
|
MOV AX,#0x0000
|
|
MOV CX,#0x0000
|
|
MOV BX,#0x0000
|
|
ADD AX,#0xDEAD
|
|
ADD CX,#0xBEEF
|
|
ADD CX,#0x4111
|
|
mov AX,#0x00FF
|
|
inc AL
|
|
mov AX,#0x00FF
|
|
inc ax
|
|
ADD AX,#0x2200
|
|
MOV SI,#0x0101
|
|
MOV [SI],AX
|
|
inc [si]
|
|
inc [si]
|
|
inc [si]
|
|
dec [si]
|
|
dec cx
|
|
cmp CX,#0x00
|
|
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
|