# # I added the comments, by hand, into this file. # The actual executable has lost the information # about what code corresponds to each C-- statement. # (Because I did this by hand, errors are possible...) # Text size: 392 Data size: 152 Stack size: 2048 Heap size: 512 Entry point: 0 00000000 0x23bdfff8: addi $sp, $sp, -8 00000004 0xafbf0000: sw $ra, $sp, 0 00000008 0xafbe0004: sw $fp, $sp, 4 0000000c 0x001df020: add $fp, $0, $sp # x = 1 00000010 0x34080024: ori $t0, $0, 36 00000014 0x011c4020: add $t0, $t0, $gp 00000018 0x20090001: addi $t1, $0, 1 0000001c 0xad090000: sw $t1, $t0, 0 # z[0] = (+ x y) 00000020 0x20080000: addi $t0, $0, 0 00000024 0x20010002: addi $at, $0, 2 00000028 0x01014004: sllv $t0, $t0, $at 0000002c 0x34090034: ori $t1, $0, 52 00000030 0x013c4820: add $t1, $t1, $gp 00000034 0x01284820: add $t1, $t1, $t0 # (+ x y) 00000038 0x34080024: ori $t0, $0, 36 0000003c 0x011c4020: add $t0, $t0, $gp 00000040 0x8d080000: lw $t0, $t0, 0 00000044 0x340a0094: ori $t2, $0, 148 00000048 0x015c5020: add $t2, $t2, $gp 0000004c 0x8d4a0000: lw $t2, $t2, 0 00000050 0x010a5820: add $t3, $t0, $t2 00000054 0xad2b0000: sw $t3, $t1, 0 # z[1] = (+ z[0] y) 00000058 0x20080001: addi $t0, $0, 1 0000005c 0x20010002: addi $at, $0, 2 00000060 0x01014004: sllv $t0, $t0, $at 00000064 0x34090034: ori $t1, $0, 52 00000068 0x013c4820: add $t1, $t1, $gp 0000006c 0x01284820: add $t1, $t1, $t0 # (+ z[0] y) 00000070 0x20080000: addi $t0, $0, 0 00000074 0x20010002: addi $at, $0, 2 00000078 0x01014004: sllv $t0, $t0, $at 0000007c 0x340a0034: ori $t2, $0, 52 00000080 0x015c5020: add $t2, $t2, $gp 00000084 0x01485020: add $t2, $t2, $t0 00000088 0x8d4a0000: lw $t2, $t2, 0 0000008c 0x34080094: ori $t0, $0, 148 00000090 0x011c4020: add $t0, $t0, $gp 00000094 0x8d080000: lw $t0, $t0, 0 00000098 0x01485820: add $t3, $t2, $t0 0000009c 0xad2b0000: sw $t3, $t1, 0 # z[10] = (+ z[1] x) 000000a0 0x2008000a: addi $t0, $0, 10 000000a4 0x20010002: addi $at, $0, 2 000000a8 0x01014004: sllv $t0, $t0, $at 000000ac 0x34090034: ori $t1, $0, 52 000000b0 0x013c4820: add $t1, $t1, $gp 000000b4 0x01284820: add $t1, $t1, $t0 # (+ z[1] x) 000000b8 0x20080001: addi $t0, $0, 1 000000bc 0x20010002: addi $at, $0, 2 000000c0 0x01014004: sllv $t0, $t0, $at 000000c4 0x340a0034: ori $t2, $0, 52 000000c8 0x015c5020: add $t2, $t2, $gp 000000cc 0x01485020: add $t2, $t2, $t0 000000d0 0x8d4a0000: lw $t2, $t2, 0 000000d4 0x34080024: ori $t0, $0, 36 000000d8 0x011c4020: add $t0, $t0, $gp 000000dc 0x8d080000: lw $t0, $t0, 0 000000e0 0x01485820: add $t3, $t2, $t0 000000e4 0xad2b0000: sw $t3, $t1, 0 # c = 65 000000e8 0x3408002c: ori $t0, $0, 44 000000ec 0x011c4020: add $t0, $t0, $gp 000000f0 0x21080003: addi $t0, $t0, 3 000000f4 0x20090041: addi $t1, $0, 65 000000f8 0xa1090000: sb $t1, $t0, 0 # str[0] = c 000000fc 0x20080000: addi $t0, $0, 0 00000100 0x34090000: ori $t1, $0, 0 00000104 0x013c4820: add $t1, $t1, $gp 00000108 0x01284820: add $t1, $t1, $t0 0000010c 0x3408002c: ori $t0, $0, 44 00000110 0x011c4020: add $t0, $t0, $gp 00000114 0x81080003: lb $t0, $t0, 3 00000118 0xa1280000: sb $t0, $t1, 0 # str[1] = (+ str[0] 1) 0000011c 0x20080001: addi $t0, $0, 1 00000120 0x34090000: ori $t1, $0, 0 00000124 0x013c4820: add $t1, $t1, $gp 00000128 0x01284820: add $t1, $t1, $t0 # (+ str[0] 1) 0000012c 0x20080000: addi $t0, $0, 0 00000130 0x340a0000: ori $t2, $0, 0 00000134 0x015c5020: add $t2, $t2, $gp 00000138 0x01485020: add $t2, $t2, $t0 0000013c 0x814a0000: lb $t2, $t2, 0 00000140 0x20080001: addi $t0, $0, 1 00000144 0x01485820: add $t3, $t2, $t0 00000148 0xa12b0000: sb $t3, $t1, 0 # str[2] = 0 0000014c 0x20080002: addi $t0, $0, 2 00000150 0x34090000: ori $t1, $0, 0 00000154 0x013c4820: add $t1, $t1, $gp 00000158 0x01284820: add $t1, $t1, $t0 0000015c 0x20080000: addi $t0, $0, 0 00000160 0xa1280000: sb $t0, $t1, 0 # msg = "test message" 00000164 0x3408008c: ori $t0, $0, 140 00000168 0x011c4020: add $t0, $t0, $gp # ""test message"" 0000016c 0x34090014: ori $t1, $0, 20 00000170 0x013c4820: add $t1, $t1, $gp 00000174 0xad090000: sw $t1, $t0, 0 # __L2: 00000178 0x8fdf0000: lw $ra, $fp, 0 0000017c 0x8fde0004: lw $fp, $fp, 4 00000180 0x23bd0008: addi $sp, $sp, 8 00000184 0x03e00008: jr $0, $ra, $0