Question: Create a symbol table for the ARC segment shown below using a form similar to Figure 5-7. Use U for any symbols that are undefined.

Create a symbol table for the ARC segment shown below using a form similar to Figure 5-7. Use U for any symbols that are undefined.

x .equ 4000 .org 2048 ba main .org 2072 
main: sethi x, %r2 srl %r2, 10, %r2 
lab_4: st %r2, [k] addcc %r1, -1, %r1 
foo: st %r1, [k] andcc %r1, %r1, %r0 
 beq lab_5 jmpl %r15 + 4, %r0 

cons: .dwb 3

***

! Main program

.begin .org 2048

.extern sub

main: ld [x], %r2

ld [y], %r3

call sub

jmpl %r15 + 4, %r0

x: 105

y: 92

.end

Symbol

Value

Global/ External

Relocatable

sub

main

x

y

2048

2064

2068

External

No

No

No

Yes

Yes

Yes

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 Databases Questions!