Question: 116 SECTION 2: UNDERSTANDING CODE The following section will be asking questions about the code in the following table. The instruction Set is defined in

116 SECTION 2: UNDERSTANDING CODE The following section will be asking questions about the code in the following table. The instruction Set is defined in the table on the last page of this assignment. The Address column represents the Memory Address. The Contents column represents the contents of the memory at the corresponding address. The Mnemonic column provides the "human readable" format of the program. Address Contents Mnemonic 00 901 INP 01 STA 16 02 901 INP 03 215 SUB 15 04 317 STA 17 05 518 06 ADD 16 07 318 STA 18 08 LDA 17 09 215 SUB 15 10 317 STA 17 11 804 BRP 04 12 518 LDA 18 13 902 14 000 HLT 15 001 DAT 01 16 000 DAT 00 17 000 DAT 00 18 000 DAT 00 9. (2pts each) Fill in the missing entry in the empty square at address 01. 10. (2pts each) Fill-in the missing entry in the empty square at address os. 11. (2pts each) Fill-in the missing entry in the empty square at address 08. 12. (2pts each) Fill in the missing entry in the empty square at address 13. 13. (2pts) What four addresses in the program above being used like variables or constants by storing data? 14. (2pts) Describe the steps this program performs. 15. (2pts) What instruction is missing from the LMC instruction set that, if added, would to make calculating this answer easier for the programmer and faster for the computer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
