0

i have to submit my assignment after 4 hours
and there are fue things i couldnt understand
i wich any can help me to understand....

Given DS = 1234H and the declarations:
DATA SEGMENT
VAR1 DB β€˜CAT’, 3 DUP(?), 0, β€˜0’, ?
VAR2 DD 123ABC4DH
DATA ENDS

and
LEA BX, VAR2
INC [BX]
MOV SI, OFFSET VAR1
MOV CL, [SI]

what dose each of the red words will represent !!!
i need to understand because we have a test soon:'(

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Ancient Dragon
0

LEA means Load Effective Address -- so that will store the offset from the beginning of the data segment to the start of variable named VAR2 into the BX register. Read through this page.

MOV SI,OFFSET VAR1 does the same thing as LEA SI,VAR1

mov cl,[si] means to copy of value of the memory location whose address is in the SI register into the cl register. If the value at DS:SI is 10h then the value of cl after that instruction will also be 10h.

Edited by Ancient Dragon: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.