I have a bunch of instructions here, presumably they are arm instructions, but I need a little help on assembling them and then 'applying' them to a ROM.
It's an assembly hack. Here are the actual instructions:
]
I have a feeling ITEM_TABLE_REF is a variable (an offset to some data) that is supposed to be defined by some other code somewhere else or something... for the sake of testing things how would I go about just replacing this with a permanent offset (say 0x8B90000).
I have DevKit Advance, read the entire website, and downloaded some form of GCC, but I'm not sure how to piece things together and actually assemble it.
If no one's willing/able to tutor me or bring me up with an understandable guide on how to assemble the instructions and then complete the assembly hack, then if someone could do it for me (the game is Fire Emblem 7 (U) #1235) I'd appreciate that too.
P.S. the hack is for a friend of mine... lol.
It's an assembly hack. Here are the actual instructions:
Code:
.orgÂÂÂÂ0x080184DC
push {lr}ÂÂ @
@-------------------------------@Get uses/equipped weapon of unit pointed at by r0
blÂÂÂÂ0x08016764
lsl r0, r0, #0x18 @
lsr r0, r0, #0x18 @
ldr r1,ÂÂ ITEM_TABLE_REF
ldr r1, [r1]ÂÂ@r1 points to item table
mov r2, r0ÂÂ@
lsl r0, r0, #0x03 @
add r0, r0, r2 @
lsl r0, r0, #0x02 @
add r0, r0, r1 @Indexing of item table complete
ldrb r0, [r0, #0x08] @
mov r1, #0x02ÂÂ@"Use magic animation?"
and r0, r1ÂÂ@
lsr r0, r0, #0x01 @r0 == 1 or 0, guaranteed
pop {pc}ÂÂ @
.alignÂÂÂÂ2
ÂÂ ITEM_TABLE_REF:
.longÂÂÂÂ0x08016060
I have a feeling ITEM_TABLE_REF is a variable (an offset to some data) that is supposed to be defined by some other code somewhere else or something... for the sake of testing things how would I go about just replacing this with a permanent offset (say 0x8B90000).
I have DevKit Advance, read the entire website, and downloaded some form of GCC, but I'm not sure how to piece things together and actually assemble it.
If no one's willing/able to tutor me or bring me up with an understandable guide on how to assemble the instructions and then complete the assembly hack, then if someone could do it for me (the game is Fire Emblem 7 (U) #1235) I'd appreciate that too.
P.S. the hack is for a friend of mine... lol.







