Académique Documents
Professionnel Documents
Culture Documents
<arrayname> DB | DW value1,
value2, value3, ……valuen
e.g. Integers DB 0, 1, 2, 3, 4
e.g. Strange DW 256 dup (0, 1,
2, 3)
access the element in the array, address=
[<arrayname>+<index>*<element size>]
e.g. to denote the array SUMMER[2] with
word size in assembly, you can
[SUMMER+2*2]
String
Usage:
JMP {<label> | <address> | <register>}
START: MOV AX, 20h
JMP START
JMP AX => MOV IP, AX
Conditional Jump - JXX
Arithmetic Jump
JS Jump sign N=1
JNS Jump no sign N=0
JC Jump carry C=1
JNC Jump no carry C=0
JO Jump overflow O=1
JNO Jump not overflow O=0
JP / JPE Jump parity even P=1
JNP / JPO Jump parity odd P=0
Looping
LOOP <label>
1. You have to initial CX
2. Automatically decrement CX in every
LOOP call
MOV CX, 10
A: INC AX
: :
LOOP A
I want to use turbo debugger
Assemble with:
tasm /zi /la myprogram.asm
tlink /v myprogram.obj
Turbo debugger
td myprogram.exe