Please help me answer this question and tell me what does OFFSET mean in this qu
ID: 3905671 • Letter: P
Question
Please help me answer this question and tell me what does OFFSET mean in this question. Thank you.
Question 3 17pt] Answer the following question for the program shown below 1 .data 2 byteVal BYTE 10h 3 .code 4 mov esi, OFFSET byteVal 5 mov al, [esi] 6 incIesil] In the above program, is there any problem in line number 6 (inc [esil)? The program wants to increment the value of byteVal by 1. If the line is incorrect, answer yes, then, explain why it is problem and correct it Else, just simply answer no.Explanation / Answer
The line is Incorrect.
esi is like a pointer , The operand must have size.
The assembler doesn't know whether esi points to byte, word, or some other size
In, mov esi, OFFSET byteVal
The address of byteVal will be put into register esi
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.