What is the addressing mode for the operations:
dec Z-2
mov bx, offset Z+3
? I could find most of the scenarios except this ones :/
thanks allot!
The first instruction dec Z-2
most probably uses a memory operand. I think however many assemblers would prefer something like dec word [Z-2]
. Written this way the instruction decrements the word before label/variable Z.
The second instruction mov bx,offset Z+3
uses an immediate operand whose value is 3 more than the address of the label/variable Z. It doesn't approach the memory whose address was calculated.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.