Load party data into Formation screen data

From Final Fantasy Hacktics Wiki
Revision as of 16:10, 24 January 2016 by Choto (talk | contribs) (Created page with "<font face='Courier New'> Get Base Job Get Base Job 0012243c: 00042400 sll r4,r4,0x10 00122440: 00042383 sra r4,r4,0x0e 00122444: 3c01801d lui r1,0x801d 00122448: 00240821...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Get Base Job Get Base Job

0012243c: 00042400 sll r4,r4,0x10
00122440: 00042383 sra r4,r4,0x0e
00122444: 3c01801d lui r1,0x801d
00122448: 00240821 addu r1,r1,r4
0012244c: 8c24d5ec lw r4,-0x2a14(r1)		some unit data
00122450: 00000000 nop
00122454: 90830072 lbu r3,0x0072(r4)		load sprite set
00122458: 34020082 ori r2,r0,0x0082
0012245c: 14620004 bne r3,r2,0x00122470		branch if not monster
00122460: 00000000 nop
00122464: 84830024 lh r3,0x0024(r4)			load current job
00122468: 08048920 j 0x00122480
0012246c: 00000000 nop
00122470: 2c620080 sltiu r2,r3,0x0080		set if special character
00122474: 14400002 bne r2,r0,0x00122480		branch if so
00122478: 00000000 nop
0012247c: 3403004a ori r3,r0,0x004a
00122480: 03e00008 jr r31
00122484: 00601021 addu r2,r3,r0			r2 = base job