(no subject)

Jan 21, 2009 12:48


program debugtest

CONSOLE equ 1
PUTSTR equ 3
EXIT equ 0xffff
STACK 20
data

C1 db 'Hello there!', 10, 13, 0
W1 dw -33
W2 dw 30055
W3 dw ?
C2 db 'Bye now!', 10, 13, 0
code

debugtest
mov PUTSTR, r1
lea C1, r2
sys CONSOLE

lodw W1,,r1
lodw W2,,r2
add r1,r2,r3
stow W3,,r3

mov PUTSTR, r1
lea C2, r2
sys CONSOLE
sys EXIT
end
Previous post Next post
Up