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:'(

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.