int x1=200; int y1=300; int z1, z2, 23, z4; int d1, d2, d3; _asm{ mov EAX, x1; 200 mov EBX, y1; 300 mov z1, ESP; assume initial ESP : OFFF_FFE. add EAX, x1; 400 push EAX; mov d1, EAX:400 mov z2, ESP; push EBX; SUB EBX, x1; 300-200=100 mov d2, EBX; mov z3, ESP; POP ECX; MOV d3, ECX; MOV z4, ESP; POP EDX; mov d4, EDX; What is z3 in Hexidecimal? O OFFF FFEA O OFFF FFE6 O OFFF FFE2 OFFF FFEE

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section: Chapter Questions
Problem 4PP
icon
Related questions
Question
QUESTION 21
int x1=200;
int y1=3003;
int z1, z2, z3, z4;
int d1, d2, d3;
_asm{
mov EAX, x1; 200
mov EBX, y1; 300
mov z1, ESP; assume initial ESP: OFFF FFEA
add EAX, x1; 400
push EAX;
mov d1, EAX:400
mov z2, ESP;
push EBX;
SUB EBX, x1; 300-200=100
mov d2, EBX;
mov 23, ESP;
POP ECX;
MOV d3, ECX;
MOV z4, ESP;
POP EDX;
mov d4, EDX;
What is z3 in Hexidecimal?
O OFFF FFEA
O OFFF FFE6
OFFF FFE2
OFFF FFEE
Transcribed Image Text:QUESTION 21 int x1=200; int y1=3003; int z1, z2, z3, z4; int d1, d2, d3; _asm{ mov EAX, x1; 200 mov EBX, y1; 300 mov z1, ESP; assume initial ESP: OFFF FFEA add EAX, x1; 400 push EAX; mov d1, EAX:400 mov z2, ESP; push EBX; SUB EBX, x1; 300-200=100 mov d2, EBX; mov 23, ESP; POP ECX; MOV d3, ECX; MOV z4, ESP; POP EDX; mov d4, EDX; What is z3 in Hexidecimal? O OFFF FFEA O OFFF FFE6 OFFF FFE2 OFFF FFEE
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr