Initialize RGB and some more stuff

From Final Fantasy Hacktics Wiki
(Redirected from 0007ad08 - 0007adb0)
Jump to navigation Jump to search

Initialize RGB and some more stuff 7ad08: 0007ad08 - 0007adb0


0007ad08: 34020001 ori r2,r0,0x0001			r2 = (0x1) 1
0007ad0c: 10a20012 beq r5,r2,0x0007ad58			Branch if 0x0 == 1 (1)
0007ad10: 00041100 sll r2,r4,0x04			Shift left 4 bits (*0x10) (*16)
0007ad14: 28a20002 slti r2,r5,0x0002			Set if 0x0 < 2
0007ad18: 10400005 beq r2,r0,0x0007ad30			Branch if not
0007ad1c: 00000000 nop
0007ad20: 10a00008 beq r5,r0,0x0007ad44			Branch if 0x0 == 0x0
0007ad24: 00041100 sll r2,r4,0x04			Shift left 4 bits (*0x10) (*16)
0007ad28: 0801eb61 j 0x0007ad84			
0007ad2c: 00002021 addu r4,r0,r0
0007ad30: 34020002 ori r2,r0,0x0002			r2 = (0x2) 2
0007ad34: 10a2000d beq r5,r2,0x0007ad6c			Branch if 0x0 == 2 (2)
0007ad38: 00041100 sll r2,r4,0x04			2 (2)* 0x100 (* 256)
0007ad3c: 0801eb61 j 0x0007ad84			
0007ad40: 00002021 addu r4,r0,r0
0007ad44: 00441021 addu r2,r2,r4
0007ad48: 3c03800b lui r3,0x800b			
0007ad4c: 246376d6 addiu r3,r3,0x76d6
0007ad50: 0801eb5f j 0x0007ad7c			
0007ad54: 00021180 sll r2,r2,0x06			* 0x4040 (* 16448)
0007ad58: 00441021 addu r2,r2,r4
0007ad5c: 3c03800b lui r3,0x800b			
0007ad60: 246376ec addiu r3,r3,0x76ec
0007ad64: 0801eb5f j 0x0007ad7c			
0007ad68: 00021180 sll r2,r2,0x06			* 0x101040 (* 1052736)
0007ad6c: 00441021 addu r2,r2,r4
0007ad70: 00021180 sll r2,r2,0x06			* 0x4041040 (* 67375168)
0007ad74: 3c03800b lui r3,0x800b			
0007ad78: 24637702 addiu r3,r3,0x7702
0007ad7c: 00433021 addu r6,r2,r3
0007ad80: 00002021 addu r4,r0,r0
0007ad84: 00c01821 addu r3,r6,r0
0007ad88: 34020080 ori r2,r0,0x0080			r2 = (0x80) 128
0007ad8c: a0c20002 sb r2,0x0002(r6)			Store 80 (128) into 0x2
0007ad90: a0c20001 sb r2,0x0001(r6)			Store 80 (128) into 0x1
0007ad94: a0c20000 sb r2,0x0000(r6)			Store 80 (128) into 0x0
0007ad98: a0600014 sb r0,0x0014(r3)			Store 0x0 into 0x14
0007ad9c: 24840001 addiu r4,r4,0x0001
0007ada0: 1880fffd blez r4,0x0007ad98
0007ada4: 24630007 addiu r3,r3,0x0007
0007ada8: a0c00003 sb r0,0x0003(r6)			Store 0x0 into 0x3
0007adac: 03e00008 jr r31			Jump to Address
0007adb0: 00c01021 addu r2,r6,r0