000442bc - 00044380

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

000442bc: 27bdfff8 addiu r29,r29,0xfff8
000442c0: 00003021 addu r6,r0,r0
000442c4: 00043ac2 srl r7,r4,0x0b               # number of 0x800 byte blocks to dedicate
000442c8: 308407ff andi r4,r4,0x07ff
000442cc: 10800002 beq r4,r0,0x000442d8         # rounding up
000442d0: 34080001 ori r8,r0,0x0001
000442d4: 24e70001 addiu r7,r7,0x0001           # +1 block if rounding up
000442d8: 00002821 addu r5,r0,r0
000442dc: 3c018005 lui r1,0x8005
000442e0: 00250821 addu r1,r1,r5
000442e4: 9024e5c0 lbu r4,-0x1a40(r1)
000442e8: 00000000 nop
000442ec: 1480000a bne r4,r0,0x00044318
000442f0: 0088102b sltu r2,r4,r8
000442f4: 14c00002 bne r6,r0,0x00044300
000442f8: 00000000 nop
000442fc: 00a01821 addu r3,r5,r0
00044300: 24c60001 addiu r6,r6,0x0001
00044304: 00c7102b sltu r2,r6,r7
00044308: 1040000c beq r2,r0,0x0004433c
0004430c: 00000000 nop
00044310: 080110ca j 0x00044328
00044314: 24a50001 addiu r5,r5,0x0001
00044318: 14400002 bne r2,r0,0x00044324
0004431c: 00003021 addu r6,r0,r0
00044320: 24880001 addiu r8,r4,0x0001
00044324: 24a50001 addiu r5,r5,0x0001
00044328: 2ca20010 sltiu r2,r5,0x0010
0004432c: 1440ffeb bne r2,r0,0x000442dc         # loop
00044330: 00c7102b sltu r2,r6,r7
00044334: 14400010 bne r2,r0,0x00044378
00044338: 00001021 addu r2,r0,r0
0004433c: 10c0000a beq r6,r0,0x00044368
00044340: 00002821 addu r5,r0,r0
00044344: 3c048005 lui r4,0x8005
00044348: 2484e5c0 addiu r4,r4,0xe5c0
0004434c: 00651021 addu r2,r3,r5
00044350: 00441021 addu r2,r2,r4
00044354: a0480000 sb r8,0x0000(r2)
00044358: 24a50001 addiu r5,r5,0x0001
0004435c: 00a6102b sltu r2,r5,r6
00044360: 1440fffa bne r2,r0,0x0004434c
00044364: 00000000 nop
00044368: 00031ac0 sll r3,r3,0x0b
0004436c: 3c028005 lui r2,0x8005
00044370: 2442eb18 addiu r2,r2,0xeb18            # 8005eb18?
00044374: 00621021 addu r2,r3,r2                 # return RAM address of dedicated space
00044378: 27bd0008 addiu r29,r29,0x0008
0004437c: 03e00008 jr r31
00044380: 00000000 nop