Gen V TM routine in Gen III games
View Single Post
March 26th, 2012 (09:32 AM).
ASM is my life now...
Join Date: May 2008
Quote originally posted by
EDIT: In Fire Red, after disassembling the routine at
, it seems that the value of 1 is subtracted from the item amount in r0. Changing this to 0 will cause the TM to not be consumed, but it will do the same for all items as well...
View original post
Well, to put it blunt, item index is passed through r4. Make a branch at that offset you mentioned and check if r4 is between tm01 and tm50 item values:
If yes, then don't subtract anything. If not, subtract 1 like normal items.
This signature has been disabled.
over 350px high
Please review and fix the issues by reading the
You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.
Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
Show disabled signature.
My Site (UNDER CONSTRUCTION):
(mage by Xryo)
Sou o Dark rayquaza da antiga myutsu.net
My Laptop SPECS
Credits to Eagledelt for the wonderfull sign :D
View Public Profile
Send a private message to sonic1
Find all posts by sonic1
Find threads started by sonic1
Ignore Posts by sonic1