Menu

[Solved]3 Given Following Program Address Load X Store Temp Jns Subr Store Return Address Jump Pro Q37258340

3. Given the following program: Address Load X Store Temp Jns Subr /Store return address, jump to procedure 101 102 103 104 13. Given the following program: Address Load X Store Temp Jns Subr /Store return address, jump to procedure 101 102 103 104 105 Store X Load Y Store Temp ins Subr /Store return address, jump to procedure Store Y Halt 106 109 10A 10B 10C 10D X, Hex 10 Y ex 20 Z, Hex 30 Temp, Hex Subr, Hex /Store return address here 10E Load Temp Add Z Jumpi Subr /Return to calling code 10F 110 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? PC X 101 Store Temp 102 10E Load Temp 10F 110 Load X JnS Subr Add Z x 3 (in Hexadecimal number) Y 1o1 (in Hexadecimal number) Temp: O(in Hexadecimal number) Subr: (in Hexadecimal number) 109 Halt Show transcribed image text 3. Given the following program: Address Load X Store Temp Jns Subr /Store return address, jump to procedure 101 102 103 104 105 Store X Load Y Store Temp ins Subr /Store return address, jump to procedure Store Y Halt 106 109 10A 10B 10C 10D X, Hex 10 Y ex 20 Z, Hex 30 Temp, Hex Subr, Hex /Store return address here 10E Load Temp Add Z Jumpi Subr /Return to calling code 10F 110 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? PC X 101 Store Temp 102 10E Load Temp 10F 110 Load X JnS Subr Add Z x 3 (in Hexadecimal number) Y 1o1 (in Hexadecimal number) Temp: O(in Hexadecimal number) Subr: (in Hexadecimal number) 109 Halt

Expert Answer


Answer to 3. Given the following program: Address Load X Store Temp Jns Subr /Store return address, jump to procedure 101 102 103 … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *