Difference between revisions of "BUNIT.OUT Unit List Display"
Jump to navigation
Jump to search
(Created page with "This is found in event/bunit.out, 0x00007e08 - 0x00007f44 [0x00007e08] addiu r29,r29,-0x0038 [0x00007e0c] sw r21,0x002c(r29) [0x00007e10] addu r21,r6,r0 [0x00007e14] sw r...") |
RetroTypes (talk | contribs) m (RetroTypes moved page Unit List Display to BUNIT.OUT Unit List Display without leaving a redirect) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | 001c6e08: 27bdffc8 addiu r29,r29,-0x0038 | |
− | + | 001c6e0c: afb5002c sw r21,0x002c(r29) | |
− | + | 001c6e10: 00c0a821 addu r21,r6,r0 | |
− | + | 001c6e14: afb1001c sw r17,0x001c(r29) | |
− | + | 001c6e18: 00008821 addu r17,r0,r0 | |
− | + | 001c6e1c: afb20020 sw r18,0x0020(r29) | |
− | + | 001c6e20: 00009021 addu r18,r0,r0 | |
− | + | 001c6e24: afb00018 sw r16,0x0018(r29) | |
− | + | 001c6e28: 00008021 addu r16,r0,r0 | |
− | + | 001c6e2c: afb40028 sw r20,0x0028(r29) | |
− | + | 001c6e30: 3c14801f lui r20,0x801f | |
− | + | 001c6e34: 2694b280 addiu r20,r20,-0x4d80 | |
− | + | 001c6e38: afb30024 sw r19,0x0024(r29) | |
− | + | 001c6e3c: 00009821 addu r19,r0,r0 | |
− | + | 001c6e40: afbf0030 sw r31,0x0030(r29) | |
− | + | 001c6e44: 0c0602bf jal 0x00180afc #[[Get Unit's Data Pointer]] | |
− | + | 001c6e48: 02002021 addu r4,r16,r0 | |
− | + | 001c6e4c: 00402021 addu r4,r2,r0 | |
− | + | 001c6e50: 10800020 beq r4,r0,0x001c6ed4 | |
− | + | 001c6e54: 340200ff ori r2,r0,0x00ff | |
− | + | 001c6e58: 90830001 lbu r3,0x0001(r4) #Load unit ID | |
− | + | 001c6e5c: 00000000 nop | |
− | + | 001c6e60: 1062001c beq r3,r2,0x001c6ed4 #Branch if unit doesn't exist | |
− | + | 001c6e64: 00000000 nop | |
− | + | 001c6e68: 90820006 lbu r2,0x0006(r4) #Load gender byte | |
− | + | 001c6e6c: 00000000 nop | |
− | + | 001c6e70: 30420004 andi r2,r2,0x0004 | |
− | + | 001c6e74: 10400003 beq r2,r0,0x001c6e84 #Branch if not ??? stats | |
− | + | 001c6e78: 00000000 nop | |
− | + | 001c6e7c: 08071bb5 j 0x001c6ed4 | |
− | + | 001c6e80: 26520001 addiu r18,r18,0x0001 | |
− | + | 001c6e84: 90820058 lbu r2,0x0058(r4) #Current status 1 | |
− | + | 001c6e88: 00000000 nop | |
− | + | 001c6e8c: 30420040 andi r2,r2,0x0040 | |
− | + | 001c6e90: 14400010 bne r2,r0,0x001c6ed4 #Branch if crystal | |
− | + | 001c6e94: 00000000 nop | |
− | + | 001c6e98: 90820059 lbu r2,0x0059(r4) #Current status 2 | |
− | + | 001c6e9c: 00000000 nop | |
− | + | 001c6ea0: 30420001 andi r2,r2,0x0001 | |
− | + | 001c6ea4: 1440000b bne r2,r0,0x001c6ed4 #Branch if treasure | |
− | + | 001c6ea8: 00000000 nop | |
− | + | 001c6eac: 26520001 addiu r18,r18,0x0001 | |
− | + | 001c6eb0: 3c05801f lui r5,0x801f | |
− | + | 001c6eb4: 24a5b2b0 addiu r5,r5,-0x4d50 | |
− | + | 001c6eb8: 02652821 addu r5,r19,r5 | |
− | + | 001c6ebc: 0c071a15 jal 0x001c6854 | |
− | + | 001c6ec0: 02203021 addu r6,r17,r0 | |
− | + | 001c6ec4: a6910000 sh r17,0x0000(r20) | |
− | + | 001c6ec8: 26940002 addiu r20,r20,0x0002 | |
− | + | 001c6ecc: 2673010c addiu r19,r19,0x010c | |
− | + | 001c6ed0: 26310001 addiu r17,r17,0x0001 | |
− | + | 001c6ed4: 26100001 addiu r16,r16,0x0001 | |
− | + | 001c6ed8: 2a020015 slti r2,r16,0x0015 | |
− | + | 001c6edc: 1440ffd9 bne r2,r0,0x001c6e44 | |
− | + | 001c6ee0: 00000000 nop | |
− | + | 001c6ee4: 1a200009 blez r17,0x001c6f0c | |
− | + | 001c6ee8: 00008021 addu r16,r0,r0 | |
− | + | 001c6eec: 00001821 addu r3,r0,r0 | |
− | + | 001c6ef0: 3c01801f lui r1,0x801f | |
− | + | 001c6ef4: 00230821 addu r1,r1,r3 | |
− | + | 001c6ef8: a432b2b6 sh r18,-0x4d4a(r1) | |
− | + | 001c6efc: 26100001 addiu r16,r16,0x0001 | |
− | + | 001c6f00: 0211102a slt r2,r16,r17 | |
− | + | 001c6f04: 1440fffa bne r2,r0,0x001c6ef0 | |
− | + | 001c6f08: 2463010c addiu r3,r3,0x010c | |
− | + | 001c6f0c: 3c01801f lui r1,0x801f | |
− | + | 001c6f10: a431b2ac sh r17,-0x4d54(r1) | |
− | + | 001c6f14: 0c071bd2 jal 0x001c6f48 | |
− | + | 001c6f18: 02a02021 addu r4,r21,r0 | |
− | + | 001c6f1c: 02201021 addu r2,r17,r0 | |
− | + | 001c6f20: 8fbf0030 lw r31,0x0030(r29) | |
− | + | 001c6f24: 8fb5002c lw r21,0x002c(r29) | |
− | + | 001c6f28: 8fb40028 lw r20,0x0028(r29) | |
− | + | 001c6f2c: 8fb30024 lw r19,0x0024(r29) | |
− | + | 001c6f30: 8fb20020 lw r18,0x0020(r29) | |
− | + | 001c6f34: 8fb1001c lw r17,0x001c(r29) | |
− | + | 001c6f38: 8fb00018 lw r16,0x0018(r29) | |
− | + | 001c6f3c: 27bd0038 addiu r29,r29,0x0038 | |
− | + | 001c6f40: 03e00008 jr r31 | |
− | + | 001c6f44: 00000000 nop | |
− | |||
− |
Latest revision as of 23:41, 20 September 2024
001c6e08: 27bdffc8 addiu r29,r29,-0x0038 001c6e0c: afb5002c sw r21,0x002c(r29) 001c6e10: 00c0a821 addu r21,r6,r0 001c6e14: afb1001c sw r17,0x001c(r29) 001c6e18: 00008821 addu r17,r0,r0 001c6e1c: afb20020 sw r18,0x0020(r29) 001c6e20: 00009021 addu r18,r0,r0 001c6e24: afb00018 sw r16,0x0018(r29) 001c6e28: 00008021 addu r16,r0,r0 001c6e2c: afb40028 sw r20,0x0028(r29) 001c6e30: 3c14801f lui r20,0x801f 001c6e34: 2694b280 addiu r20,r20,-0x4d80 001c6e38: afb30024 sw r19,0x0024(r29) 001c6e3c: 00009821 addu r19,r0,r0 001c6e40: afbf0030 sw r31,0x0030(r29) 001c6e44: 0c0602bf jal 0x00180afc #Get Unit's Data Pointer 001c6e48: 02002021 addu r4,r16,r0 001c6e4c: 00402021 addu r4,r2,r0 001c6e50: 10800020 beq r4,r0,0x001c6ed4 001c6e54: 340200ff ori r2,r0,0x00ff 001c6e58: 90830001 lbu r3,0x0001(r4) #Load unit ID 001c6e5c: 00000000 nop 001c6e60: 1062001c beq r3,r2,0x001c6ed4 #Branch if unit doesn't exist 001c6e64: 00000000 nop 001c6e68: 90820006 lbu r2,0x0006(r4) #Load gender byte 001c6e6c: 00000000 nop 001c6e70: 30420004 andi r2,r2,0x0004 001c6e74: 10400003 beq r2,r0,0x001c6e84 #Branch if not ??? stats 001c6e78: 00000000 nop 001c6e7c: 08071bb5 j 0x001c6ed4 001c6e80: 26520001 addiu r18,r18,0x0001 001c6e84: 90820058 lbu r2,0x0058(r4) #Current status 1 001c6e88: 00000000 nop 001c6e8c: 30420040 andi r2,r2,0x0040 001c6e90: 14400010 bne r2,r0,0x001c6ed4 #Branch if crystal 001c6e94: 00000000 nop 001c6e98: 90820059 lbu r2,0x0059(r4) #Current status 2 001c6e9c: 00000000 nop 001c6ea0: 30420001 andi r2,r2,0x0001 001c6ea4: 1440000b bne r2,r0,0x001c6ed4 #Branch if treasure 001c6ea8: 00000000 nop 001c6eac: 26520001 addiu r18,r18,0x0001 001c6eb0: 3c05801f lui r5,0x801f 001c6eb4: 24a5b2b0 addiu r5,r5,-0x4d50 001c6eb8: 02652821 addu r5,r19,r5 001c6ebc: 0c071a15 jal 0x001c6854 001c6ec0: 02203021 addu r6,r17,r0 001c6ec4: a6910000 sh r17,0x0000(r20) 001c6ec8: 26940002 addiu r20,r20,0x0002 001c6ecc: 2673010c addiu r19,r19,0x010c 001c6ed0: 26310001 addiu r17,r17,0x0001 001c6ed4: 26100001 addiu r16,r16,0x0001 001c6ed8: 2a020015 slti r2,r16,0x0015 001c6edc: 1440ffd9 bne r2,r0,0x001c6e44 001c6ee0: 00000000 nop 001c6ee4: 1a200009 blez r17,0x001c6f0c 001c6ee8: 00008021 addu r16,r0,r0 001c6eec: 00001821 addu r3,r0,r0 001c6ef0: 3c01801f lui r1,0x801f 001c6ef4: 00230821 addu r1,r1,r3 001c6ef8: a432b2b6 sh r18,-0x4d4a(r1) 001c6efc: 26100001 addiu r16,r16,0x0001 001c6f00: 0211102a slt r2,r16,r17 001c6f04: 1440fffa bne r2,r0,0x001c6ef0 001c6f08: 2463010c addiu r3,r3,0x010c 001c6f0c: 3c01801f lui r1,0x801f 001c6f10: a431b2ac sh r17,-0x4d54(r1) 001c6f14: 0c071bd2 jal 0x001c6f48 001c6f18: 02a02021 addu r4,r21,r0 001c6f1c: 02201021 addu r2,r17,r0 001c6f20: 8fbf0030 lw r31,0x0030(r29) 001c6f24: 8fb5002c lw r21,0x002c(r29) 001c6f28: 8fb40028 lw r20,0x0028(r29) 001c6f2c: 8fb30024 lw r19,0x0024(r29) 001c6f30: 8fb20020 lw r18,0x0020(r29) 001c6f34: 8fb1001c lw r17,0x001c(r29) 001c6f38: 8fb00018 lw r16,0x0018(r29) 001c6f3c: 27bd0038 addiu r29,r29,0x0038 001c6f40: 03e00008 jr r31 001c6f44: 00000000 nop