Lecture 5A Assembly Language Instructins
Lecture 5A Assembly Language Instructins
Lecture 5A Assembly Language Instructins
Assembly Language
Assembly Language Programming
• More compactly as
message DB ’Bye’,0DH,0AH
Arrays
Any consecutive storage locations of the
same size can be called an array
X DW 40CH,10B,-13,0
Y DB 'This is an array'
Z DD -109236, FFFFFFFFH, -1, 100B
Components of X are at X, X+2, X+4, X+6
Components of Y are at Y, Y+1, …, Y+15
Components of Z are at Z, Z+4, Z+8, Z+12
DUP
Allows a sequence of storage locations to
be defined or reserved
Only used as an operand of a define
directive
DB 40 DUP (?) ; 40 words, uninitialized
DW 10h DUP (0) ; 16 words, initialized as 0