153k views
4 votes
3. Given the following program: Address Instruction 100 Load X 101 Store Temp 102 JnS Subr / Store return address, jump to procedure 103 Store X 104 Load Y 105 Store Temp 106 JnS Subr / Store return address, jump to procedure 107 Store Y 108 Halt 109 X, Hex 10 10A Y, Hex 20 10B Z, Hex 30 10C Temp, Hex 0 10D Subr, Hex 0 /Store return address here 10E Load Temp 10F Add Z 110 Jumpi Subr /Return to calling code END Provide a trace and give the contents (in Hexadecimal number) of PC after execution of each instruction. What are the values of X, Y, Temp, Subr after running of this program

User Piu Sharma
by
4.6k points

1 Answer

4 votes
I think it’s that but I’m not sure
User Wodka
by
3.6k points