00133568 - 00133584
Jump to navigation
Jump to search
001334a4: 27bdffd8 addiu r29,r29,0xffd8 001334a8: afbf0020 sw r31,0x0020(r29) 001334ac: afb3001c sw r19,0x001c(r29) 001334b0: afb20018 sw r18,0x0018(r29) 001334b4: afb10014 sw r17,0x0014(r29) 001334b8: 0c052947 jal 0x0014a51c store some addresses somewhere 001334bc: afb00010 sw r16,0x0010(r29) 001334c0: 00008821 addu r17,r0,r0 counter = 0 001334c4: 341200fe ori r18,r0,0x00fe 001334c8: 3413000f ori r19,r0,0x000f 001334cc: 3c108017 lui r16,0x8017 001334d0: 8e103fac lw r16,0x3fac(r16) load 80173fac (stored in above routine?) 001334d4: 0c0602bf jal 0x00180afc get unit data 001334d8: 02202021 addu r4,r17,r0 001334dc: 00402021 addu r4,r2,r0 001334e0: 90830001 lbu r3,0x0001(r4) load ID 001334e4: 340200ff ori r2,r0,0x00ff 001334e8: 14620004 bne r3,r2,0x001334fc branch if exists 001334ec: 00001821 addu r3,r0,r0 001334f0: a2120000 sb r18,0x0000(r16) store FE in address 001334f4: 0804cd4e j 0x00133538 001334f8: 26100001 addiu r16,r16,0x0001 r16++ if unit exists 001334fc: 00831021 addu r2,r4,r3 00133500: 9042012c lbu r2,0x012c(r2) load unit name byte 00133504: 00000000 nop 00133508: a2020000 sb r2,0x0000(r16) store in loaded address 0013350c: 304200fe andi r2,r2,0x00fe 00133510: 1052fff8 beq r2,r18,0x001334f4 branch to next if = 0xfe 00133514: 00000000 nop 00133518: 14730003 bne r3,r19,0x00133528 branch if ?? = 0x0f (on last letterspace?) 0013351c: 26100001 addiu r16,r16,0x0001 Name address++ 00133520: a2120000 sb r18,0x0000(r16) store 0xfe (end of name) 00133524: 26100001 addiu r16,r16,0x0001 Name address++ 00133528: 24630001 addiu r3,r3,0x0001 ??++ 0013352c: 28620010 slti r2,r3,0x0010 do 16 times 00133530: 1440fff3 bne r2,r0,0x00133500 branch if not @ limit? 00133534: 00831021 addu r2,r4,r3 get next letter 00133538: 26310001 addiu r17,r17,0x0001 counter++ 0013353c: 2a220015 slti r2,r17,0x0015 do for all units 00133540: 1440ffe4 bne r2,r0,0x001334d4 00133544: 00000000 nop 00133548: 8fbf0020 lw r31,0x0020(r29) 0013354c: 8fb3001c lw r19,0x001c(r29) 00133550: 8fb20018 lw r18,0x0018(r29) 00133554: 8fb10014 lw r17,0x0014(r29) 00133558: 8fb00010 lw r16,0x0010(r29) 0013355c: 27bd0028 addiu r29,r29,0x0028 00133560: 03e00008 jr r31 00133564: 00000000 nop