Question: a. Obtain the address symbol table generated for the program of Table 6-13 during the first pass of the assembler. b. List the translated program

a. Obtain the address symbol table generated for the program of Table 6-13 during the first pass of the assembler. 

b. List the translated program in hexadecimal.

Table 6-13

Line 1 2 3 4 5 56 6 7 8 10 11 12 13 14 15 16 17 18 19 TABLE 6-13 Symbolic Program to Add 100 Numbers 118 119

Line 1 2 3 4 5 56 6 7 8 10 11 12 13 14 15 16 17 18 19 TABLE 6-13 Symbolic Program to Add 100 Numbers 118 119 LOP, ADS, PTR, 15 NBR, CTR, SUM, ORG 100 LDA ADS STA PTR LDA NBR STA CTR CLA ADD PTR I ISZ PTR ISZ CTR BUN LOP STA SUM HLT HEX 150 HEX 0 DEC -100 HEX 0 HEX 0 ORG 150 DEC 75 DEC 23 END /Origin of program is HEX 100 Load first address of operands /Store in pointer /Load minus 100 /Store in counter /Clear accumulator /Add an operand to AC Increment pointer Increment counter /Repeat loop again /Store sum /Halt /First address of operands This location reserved for a pointer /Constant to initialized counter This location reserved for a counter /Sum is stored here /Origin of operands is HEX 150 /First operand /Last operand /End of symbolic program

Step by Step Solution

3.42 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on your question you are working with an assembly language program and you want to generate the address symbol table from the first pass of the ... View full answer

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 Computer System Architecture Questions!