Question: Assume that the variables v , w , x , y , and z are stored in memory locations 2 0 0 , 2 0

Assume that the variables v, w,x,y, and z are stored in memory locations 200,201,202,203, and 204,
respectively. Also assume that the code sequence you are writing begins in memory location 50. Using any of the
machine language instructions shown in Section 5.2.4, translate the following algorithmic operations into their
machine language equivalents. (chapter 5- #21c)
If (vw) then
c. Set x to y
Else
Set x to z
Memory Location Op Code Address Field Comment
502200,201 Compare v and w and set condition codes
JUMPGE If Vw go to address 54
MOVE 204,202 Otherwise give x the value of z
55 Go to address 55
MOVE
Give x the value of y
55 The next instruction begins here
 Assume that the variables v, w,x,y, and z are stored in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!