Assume that the acutal main program code starts at 0x00400020
and that the array A in the data segment starts at 0x10010000.
Line Number | Location Counter | Assembled Code | MIPS Source |
1 | .global main | ||
2 | main: | ||
3 | addi $t1, $0, 4 | ||
4 | addi $t2, $t1, -2 | ||
5 | add $t0, $t1, $t1 | ||
6 | bne $t1, $t2, next | ||
7 | j done | ||
8 | next: | ||
9 | la $t1, A | ||
10 | lw $s1, 5($t1) | ||
11 | done: | ||
12 | jr $ra | ||
13 | .data | ||
14 | A: .word 1,2,3,4,5,6,7,8,9 |
Symbol Table
Numeber | Symbol | Value | Segment | Global |
1 | ||||
2 | ||||
3 | ||||
4 | ||||
5 |
Relocation Table
Number | Location | Type | Segment | Dependence |
1 | ||||
2 | ||||
3 | ||||
4 | ||||
5 |