Question: : Given the following program where a user enters X = 0 x 1 5 and Y = 0 x 1 5 , at which

: Given the following program where a user enters X =0x15 and Y =0x15, at which address does the program stop executing? What is the value of Z when it finishes? (X,Y,Z are all equal to 0 at program start).
// Simple Choice Add - Number at start of each line is word address where it is stored in memory.
000 Input
001 Store X
002 Input
003 Store Y
004 Load X
005 Add Y
006 SKIPCOND 800
007 jump END
008 Output
009 Halt
00A END, Store Z
00B Halt
00C X, DEC 0
00D Y, DEC 0
00E Z, DEC 0

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 Programming Questions!