Question: show generated object file assuming there are no errors Example: Insymbol Section ( 1 entry ) result 1 0 Outsymbol Section ( 2 entries )

show generated object file assuming there are no errors
Example:
Insymbol Section (1 entry)
result 10
Outsymbol Section (2 entries)
get425
get423
Object Code (11 words)(example ends)
1.
import x1
export y1
import x2
export y2
y1: word 99
load r0, x1
store r0,y2
load r3,x1
load r1,y1
addi r1,r3
store r3,x2
store r1,x1
store r0,x2
y3 : call x3
store r5,y3
y2 : halt
import x3
export y3
2.
# this tests all opcodes
#
halt
load r0,x
store r0,x
Idimm r0,0
Idaddr rO,x
Idind rO,O(rO)
stind rO,O(rO)
addf rO,rO
subf rO,rO
divf r0,r0
mulf rO,r0
addi r0,r0
subi r0,ro
divi rO,rO
muli r0,r0
call x
ret
blt r0,rO,x
bgt rO0,rO,x
beq r0,r0,x
jimp x
cmpxchg r0,rO,x
getpid ro
getpn r0
push ro
pop ro
x:
export x
 show generated object file assuming there are no errors Example: Insymbol

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!