Brendor Posted June 17, 2014 Share Posted June 17, 2014 (edited) I did this one for Arch but it's very flexible, easy to change, very small(0xF bytes long) and I think more folks than just him can make use of it. 01 49 02 48 08 60 70 47 00 BC 02 02 04 03 02 01 To figure out what value to set, take the decimal number you want, convert it to hex and then reverse it(0x12345678 become 0x78563412) The 01,02,03 and 04 at the end correspond to the 1st, 2nd, 3rd and 4th bytes of the value to set. The gold value is a word, meaning it's 32 bits or 4 bytes long so when you convert the number to hex you need to put 0's at the beginning to make it 8 digits long. Have an example: Say I want to make the current gold 20,000; 20000=0x4E20 which then becomes 0x00004E20 to make it 8 digits, then reverse to get 20 4E 00 00. So you make the last four bytes in the routine 20 4E 00 making it: 01 49 02 48 08 60 70 47 00 BC 02 02 20 4E 00 00 To call the routine, paste it somewhere in your ROM at a word aligned offset and call it in your events with ASMC Offset + 1 Enjoy guys Edited June 17, 2014 by Brendor Quote Link to comment Share on other sites More sharing options...
Vennobennu Posted June 17, 2014 Share Posted June 17, 2014 For FE8, your money is stored at 0x0202BCF8, so the routine would go like so: 01 49 02 48 08 60 70 47 F8 BC 02 02 04 03 02 01 (Hope you don't mind Brendor, just wanted to include this for completeness's sake.) Quote Link to comment Share on other sites More sharing options...
Brendor Posted June 17, 2014 Author Share Posted June 17, 2014 (edited) you trying to upstage me in my own topic bitch? jk I don't mind; you actually saved me the trouble of finding the address in FE8 so thanks Edited June 17, 2014 by Brendor Quote Link to comment Share on other sites More sharing options...
Crimson Red Posted June 17, 2014 Share Posted June 17, 2014 is there any other FE8 documentation on stuff like offsets of things in memory people would like to share? not that sharing is caring or anything Quote Link to comment Share on other sites More sharing options...
Aleph Posted June 17, 2014 Share Posted June 17, 2014 (edited) I started some header files for 7 if you guys want to contribute to the old old old suggestion of mine to produce an actual code library for FE hacking. http://dl.dropboxusercontent.com/u/336940/Software/Hextator's%20Doc/Media/Games/Hacks/Console/NGBA/Fire%20Emblem/7%20-%20Blazing%20Sword/MagRes/folDIR.html Why look up addresses of stuff on the internet/ask people for info when you could just read some source code? That we for some reason haven't written yet? Edited June 17, 2014 by Aleph Quote Link to comment Share on other sites More sharing options...
Brendor Posted June 17, 2014 Author Share Posted June 17, 2014 If only all the info wasn't spread out so widely in every direction Quote Link to comment Share on other sites More sharing options...
Aleph Posted June 18, 2014 Share Posted June 18, 2014 If only ______ spread out so widely in every direction: - your mom's legs weren't - that exploded baby wasn't - the cows caught in that tornado weren't - and more Quote Link to comment Share on other sites More sharing options...
Book of Ereshkigal Posted June 18, 2014 Share Posted June 18, 2014 If only ______ spread out so widely in every direction: - your mom's legs weren't - that exploded baby wasn't - the cows caught in that tornado weren't - and more I feel like there is a joke here that I am missing Quote Link to comment Share on other sites More sharing options...
Brendor Posted June 18, 2014 Author Share Posted June 18, 2014 That's just Alex being Alex Quote Link to comment Share on other sites More sharing options...
Aleph Posted June 18, 2014 Share Posted June 18, 2014 I made brendor's post into a template Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.