FONT FntOpen

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

00022fd0: 3c038003 lui r3,0x8003
00022fd4: 8c631e3c lw r3,0x1e3c(r3)
00022fd8: 27bdffb0 addiu r29,r29,0xffb0
00022fdc: afb20030 sw r18,0x0030(r29)
00022fe0: 8fb20064 lw r18,0x0064(r29)                 # max num. characters
00022fe4: afb60040 sw r22,0x0040(r29)
00022fe8: 8fb60060 lw r22,0x0060(r29)                 # 1 clear background, 0 don't
00022fec: afb40038 sw r20,0x0038(r29)
00022ff0: 0080a021 addu r20,r4,r0                     # x
00022ff4: afb5003c sw r21,0x003c(r29)
00022ff8: 00a0a821 addu r21,r5,r0                     # y display top left corner
00022ffc: afb30034 sw r19,0x0034(r29)
00023000: 00c09821 addu r19,r6,r0                     # w
00023004: afb70044 sw r23,0x0044(r29)
00023008: 00e0b821 addu r23,r7,r0                     # h display area
0002300c: afbf0048 sw r31,0x0048(r29)
00023010: afb1002c sw r17,0x002c(r29)
00023014: 28620008 slti r2,r3,0x0008
00023018: 14400003 bne r2,r0,0x00023028
0002301c: afb00028 sw r16,0x0028(r29)
00023020: 08008c96 j 0x00023258
00023024: 2402ffff addiu r2,r0,0xffff
00023028: 14600003 bne r3,r0,0x00023038
0002302c: 00031040 sll r2,r3,0x01
00023030: 3c018003 lui r1,0x8003
00023034: ac202844 sw r0,0x2844(r1)
00023038: 00431021 addu r2,r2,r3
0002303c: 00022100 sll r4,r2,0x04
00023040: 3c038003 lui r3,0x8003
00023044: 8c632844 lw r3,0x2844(r3)
00023048: 2e620001 sltiu r2,r19,0x0001
0002304c: 3c018003 lui r1,0x8003
00023050: 00240821 addu r1,r1,r4
00023054: ac221ce8 sw r2,0x1ce8(r1)
00023058: 02431021 addu r2,r18,r3
0002305c: 28420401 slti r2,r2,0x0401
00023060: 14400003 bne r2,r0,0x00023070
00023064: 00002821 addu r5,r0,r0                      # draw privaleges = no
00023068: 34020400 ori r2,r0,0x0400
0002306c: 00439023 subu r18,r2,r3
00023070: 3c118003 lui r17,0x8003
00023074: 26311ccc addiu r17,r17,0x1ccc
00023078: 00912021 addu r4,r4,r17                     # primative address?
0002307c: 34020100 ori r2,r0,0x0100
00023080: a7a2001c sh r2,0x001c(r29)                  # RECT.tw*.w == 0x0100
00023084: a7a2001e sh r2,0x001e(r29)                  # RECT.tw*.h == 0x0100
00023088: 27a20018 addiu r2,r29,0x0018                # RECT.*tw
0002308c: 3c078003 lui r7,0x8003
00023090: 94e76eac lhu r7,0x6eac(r7)                  # load tpage ID from?
00023094: 00003021 addu r6,r0,r0                      # Dithering off
00023098: a7a00018 sh r0,0x0018(r29)                  # RECT.*tw.x == 0
0002309c: a7a0001a sh r0,0x001a(r29)                  # RECT.*tw.y == 0
000230a0: 0c009533 jal 0x000254cc                     # P41 SetDrawMode <- sets drawfield to the screen, disables dithering, and without draw privaleges?
000230a4: afa20010 sw r2,0x0010(r29)                  # RECT.*tw
000230a8: 12c00029 beq r22,r0,0x00023150              # branch if not clearing screen
000230ac: 2630fff0 addiu r16,r17,0xfff0
000230b0: 3c028003 lui r2,0x8003
000230b4: 8c421e3c lw r2,0x1e3c(r2)
000230b8: 00000000 nop
000230bc: 00022040 sll r4,r2,0x01
000230c0: 00822021 addu r4,r4,r2
000230c4: 00042100 sll r4,r4,0x04
000230c8: 0c008f74 jal 0x00023dd0                     # P26 SetTile
000230cc: 00902021 addu r4,r4,r16
000230d0: 3c038003 lui r3,0x8003
000230d4: 8c631e3c lw r3,0x1e3c(r3)
000230d8: 00000000 nop
000230dc: 00031040 sll r2,r3,0x01
000230e0: 00431021 addu r2,r2,r3
000230e4: 00021100 sll r2,r2,0x04
000230e8: 00501021 addu r2,r2,r16
000230ec: a0400004 sb r0,0x0004(r2)
000230f0: 3c038003 lui r3,0x8003
000230f4: 8c631e3c lw r3,0x1e3c(r3)
000230f8: 00000000 nop
000230fc: 00031040 sll r2,r3,0x01
00023100: 00431021 addu r2,r2,r3
00023104: 00021100 sll r2,r2,0x04
00023108: 00501021 addu r2,r2,r16
0002310c: a0400005 sb r0,0x0005(r2)
00023110: 3c038003 lui r3,0x8003
00023114: 8c631e3c lw r3,0x1e3c(r3)
00023118: 3ac50002 xori r5,r22,0x0002                  # 
0002311c: 00031040 sll r2,r3,0x01
00023120: 00431021 addu r2,r2,r3
00023124: 00021100 sll r2,r2,0x04
00023128: 00501021 addu r2,r2,r16
0002312c: a0400006 sb r0,0x0006(r2)
00023130: 3c028003 lui r2,0x8003
00023134: 8c421e3c lw r2,0x1e3c(r2)
00023138: 2ca50001 sltiu r5,r5,0x0001
0002313c: 00022040 sll r4,r2,0x01
00023140: 00822021 addu r4,r4,r2
00023144: 00042100 sll r4,r4,0x04
00023148: 0c008f1a jal 0x00023c68                      # P10 SetSemiTrans
0002314c: 00902021 addu r4,r4,r16
00023150: 3c048003 lui r4,0x8003
00023154: 8c841e3c lw r4,0x1e3c(r4)
00023158: 2622fff0 addiu r2,r17,0xfff0
0002315c: 00041840 sll r3,r4,0x01
00023160: 00641821 addu r3,r3,r4
00023164: 00031900 sll r3,r3,0x04
00023168: 3c048003 lui r4,0x8003
0002316c: 8c842844 lw r4,0x2844(r4)
00023170: 00621021 addu r2,r3,r2
00023174: a4540008 sh r20,0x0008(r2)
00023178: a455000a sh r21,0x000a(r2)
0002317c: a453000c sh r19,0x000c(r2)
00023180: a457000e sh r23,0x000e(r2)
00023184: 3c028003 lui r2,0x8003
00023188: 24422aac addiu r2,r2,0x2aac
0002318c: 3c018003 lui r1,0x8003
00023190: 00230821 addu r1,r1,r3
00023194: ac321cd8 sw r18,0x1cd8(r1)
00023198: 3c018003 lui r1,0x8003
0002319c: 00230821 addu r1,r1,r3
000231a0: ac201ce4 sw r0,0x1ce4(r1)
000231a4: 00821021 addu r2,r4,r2
000231a8: 00042100 sll r4,r4,0x04
000231ac: 3c018003 lui r1,0x8003
000231b0: 00230821 addu r1,r1,r3
000231b4: ac221ce0 sw r2,0x1ce0(r1)
000231b8: 3c028003 lui r2,0x8003
000231bc: 24422eac addiu r2,r2,0x2eac
000231c0: 3c018003 lui r1,0x8003
000231c4: 00230821 addu r1,r1,r3
000231c8: 8c251ce0 lw r5,0x1ce0(r1)
000231cc: 00822021 addu r4,r4,r2
000231d0: 3c018003 lui r1,0x8003
000231d4: 00230821 addu r1,r1,r3
000231d8: ac241cdc sw r4,0x1cdc(r1)
000231dc: a0a00000 sb r0,0x0000(r5)
000231e0: 3c038003 lui r3,0x8003
000231e4: 8c631e3c lw r3,0x1e3c(r3)
000231e8: 00000000 nop
000231ec: 00031040 sll r2,r3,0x01
000231f0: 00431021 addu r2,r2,r3
000231f4: 00021100 sll r2,r2,0x04
000231f8: 3c018003 lui r1,0x8003
000231fc: 00220821 addu r1,r1,r2
00023200: 8c301cdc lw r16,0x1cdc(r1)
00023204: 1a40000a blez r18,0x00023230
00023208: 00008821 addu r17,r0,r0
0002320c: 0c008f56 jal 0x00023d58
00023210: 02002021 addu r4,r16,r0
00023214: 3c028003 lui r2,0x8003
00023218: 94426eb0 lhu r2,0x6eb0(r2)
0002321c: 26310001 addiu r17,r17,0x0001
00023220: a602000e sh r2,0x000e(r16)
00023224: 0232102a slt r2,r17,r18
00023228: 1440fff8 bne r2,r0,0x0002320c
0002322c: 26100010 addiu r16,r16,0x0010
00023230: 3c038003 lui r3,0x8003
00023234: 8c632844 lw r3,0x2844(r3)
00023238: 3c028003 lui r2,0x8003
0002323c: 8c421e3c lw r2,0x1e3c(r2)
00023240: 02431821 addu r3,r18,r3
00023244: 3c018003 lui r1,0x8003
00023248: ac232844 sw r3,0x2844(r1)
0002324c: 24430001 addiu r3,r2,0x0001
00023250: 3c018003 lui r1,0x8003
00023254: ac231e3c sw r3,0x1e3c(r1)
00023258: 8fbf0048 lw r31,0x0048(r29)
0002325c: 8fb70044 lw r23,0x0044(r29)
00023260: 8fb60040 lw r22,0x0040(r29)
00023264: 8fb5003c lw r21,0x003c(r29)
00023268: 8fb40038 lw r20,0x0038(r29)
0002326c: 8fb30034 lw r19,0x0034(r29)
00023270: 8fb20030 lw r18,0x0030(r29)
00023274: 8fb1002c lw r17,0x002c(r29)
00023278: 8fb00028 lw r16,0x0028(r29)
0002327c: 27bd0050 addiu r29,r29,0x0050
00023280: 03e00008 jr r31
00023284: 00000000 nop