Q2) (5 Points) Consider the following code in the .data section .data 3 5 b 7 bVar BYTE 12h, OFFh, 25h, 25h, 90h, 56h, OADh, 10d wVar WORD OFFh, 1234h, 90h, 4d dVar DWORD 34FFA394h qVar QWORD OFFEEDDCCBBAA9988h 624 ' A3 2 FF 334 Determine the value written to the register in the code in the following table (w the value in Hexadecimal notation): Code BB Value MOV AX, WORD PTR [qVar + 3] MOV AL, BYTE PTR [dVar AX = cch 1] AL = 34h ㄨ AX = MOV AX, WORD PTR [qVar + 4] MOV AX, WORD PTR [bVar + 2] MOV EAX, DWORD PTR [wVar + 5] DD cch AX = 2525h EAX = 90004dooh

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 16SA
icon
Related questions
Question
Please solve all and add explanation
Q2) (5 Points) Consider the following code in the .data section
.data
3
5
b
7
bVar BYTE 12h, OFFh, 25h, 25h, 90h, 56h, OADh, 10d
wVar WORD OFFh, 1234h, 90h, 4d
dVar DWORD 34FFA394h
qVar QWORD OFFEEDDCCBBAA9988h
624
'
A3
2 FF
334
Determine the value written to the register in the code in the following table (w
the value in Hexadecimal notation):
Code
BB
Value
MOV AX, WORD PTR [qVar + 3]
MOV AL, BYTE PTR [dVar
AX = cch
1]
AL =
34h
ㄨ
AX
=
MOV AX, WORD PTR [qVar + 4]
MOV AX, WORD PTR [bVar + 2]
MOV EAX, DWORD PTR [wVar + 5]
DD cch
AX = 2525h
EAX =
90004dooh
Transcribed Image Text:Q2) (5 Points) Consider the following code in the .data section .data 3 5 b 7 bVar BYTE 12h, OFFh, 25h, 25h, 90h, 56h, OADh, 10d wVar WORD OFFh, 1234h, 90h, 4d dVar DWORD 34FFA394h qVar QWORD OFFEEDDCCBBAA9988h 624 ' A3 2 FF 334 Determine the value written to the register in the code in the following table (w the value in Hexadecimal notation): Code BB Value MOV AX, WORD PTR [qVar + 3] MOV AL, BYTE PTR [dVar AX = cch 1] AL = 34h ㄨ AX = MOV AX, WORD PTR [qVar + 4] MOV AX, WORD PTR [bVar + 2] MOV EAX, DWORD PTR [wVar + 5] DD cch AX = 2525h EAX = 90004dooh
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning