Question: Now update the program you decoded in Task 2 . 1 . Removing all hard - coded memory addresses by adding labels to replace all

Now update the program you decoded in Task 2.1. Removing all hard-coded memory
addresses by adding labels to replace all memory locations that are used as addresses
in the program instructions. Labels should have meaningful names in the context of what
the program does (i.e., not just A, B, C). For the example above, this could result in the
following program:
Start, Jump 005
Dec 0
Dec 0
Dec 0
Dec 0
MainRoutine,JnS 00B
Load 00A
Store 002
JnS 010
Jump 01F
Dec 0
Dec 0
Input
Store 00A
JumpI 00B
Dec 0
Dec 0
Load 028
Skipcond 000
Jump 015
JumpI 010
Load 027
Subt 028
Store 00F
Load 028
Subt 020
Store 028
LoadI 00F
Add 002
StoreI 00F
Jump 011
Halt
Dec 1
HEX 01B
Hex 34
Hex 35
Hex 30
Dec 4
Hex 24
Hex 26
Dec 5

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!