Originally Posted by
Demonic
I'm still learning ASM but since I'm waiting for my teacher to get ready I look into the tools
and decided to make a really basic code for Animal Crossing Wild World v1.0 which puts
a rainbow feather in slot 1 of inventory:
Code:
ldr r1, Inventory
ldrh r2, Item
strh r2, [r1]
bx lr
Inventory:
.long 0x21d88fe
Item:
.short 0x1404
023FF090 012FFF11
E0000000 00000016
E59F1008 E1DF20B8
E1C120B0 E12FFF1E
021D88FE 00001404
023FF090 E3520003
I am still learning the basic commands and stuff but this is all I can do right now.
Ok I have a small question on this. I may be wrong and I think I am but could someone clarify for me please. Sorry two small questions.
Code:
ldr r1, Inventory
ldrh r2, Item
strh r2, [r1]
bx lr
Inventory:
.long 0x21d88fe
Item:
.short 0x1404
1)Isn't this doing the same as in AR code format:
2)Also isn't there a way to shorten this a little say like this:
Code:
ldr r1,=21D88FEh
ldrh r2, Item
strh r2, [r1]
bx lr
Item:
.short 0x1404
Like I said I think I am wrong, but can someone clarify me on this please.