11 March 2016 - Forum Rules
Started by seraphim423, June 08, 2019, 06:13:41 PM
Quote from: seraphim423 on June 08, 2019, 06:13:41 PMWhat kind of command did the Sega use to identify what items correspond to the bit number? Some details of the weapons (Name, inventory picture, ammo count, damage, armor piercing ability, etc) are all defined in specific addresses in the ROM. Each item has about two full ROM addresses dedicated to it. So somewhere in the code it has to say "these two ROM addresses correspond to gun 1, these two to gun 2, etc.
QuoteSecond question would be how to I read the branch command? Where is it telling the game to go look for additional directions above? I do not understand what 0x0000002a or 0x00000127 means.
QuoteI know you cannot just insert directions into the ROM because it would throw the address off. But a good portion of the ROM is not used in the addresses that the SEGA developer manual says is dedicated to game info. I was hoping to change the branch location to an unused part of the rom and then I could insert a few more iterations of compare bit to x and branch if equal and then bring it all back around. Would this possibly be a solution?
Quote from: Malias on June 10, 2019, 12:58:43 PM...The quick and dirty way to change code flow is to overwrite some of the code with a jump to the code you want to execute, move the code you overwrote to the beginning of your code block, run your code, then jump back into the code to resume normal execution.
SMG_1 EQU $08
Page created in 0.062 seconds with 19 queries.