You are on page 1of 5

1a.

Symbol A D 0x0 Go T 0x0


tables C U — D D 0x4
Go U — Blue T 0x10
B D 0x4 C D 0x0
Blue U — B U —
Main T 0x0
Relocation 0x00 store A 0x00 load D
tables 0x04 load C 0x04 bl Blue
0x08 bl Go 0x08 store C
0x10 bl Blue 0x10 load B































1b.
HEADER Size of Text: 0x34

Size of Data: 0x10

TEXT 0x00 Main: Store [0x100] = X1

0x04 Load X7 = [0x108]

0x08 bl [0x0C]

0x0C X2 = X3 + X4

0x10 bl [0x14]

0x14 return

0x18 Go: load X4 = [0x10C]

0x1C bl [0x08]

0x20 store [0x108] = X6

0x24 return

0x28 Blue: load X7 = [0x104]

0x2C X6 = X7 + 1

0x30 return

0x34

DATA 0x100 A 4

0x104 B 5

0x108 C 3

0x10C D -1

0x110

2a/b/d



2c.
S A B Z
0 0 0 0
1 0 0 0
0 0 1 0
1 0 1 1
0 1 0 1
1 1 0 0
0 1 1 1
1 1 1 1
3 & 4













5a/b

You might also like