The code is located up to 1FFFFF, and SRAM starts at 200001, according to the header.
The translated script being longer than the original, I want to enlarge the ROM : I'd like the code to go up to 2FFFFF and SRAM start at 300001. I modified the header and all the routines using SRAM I found up to now.
But it doesn't work : the game branches to the routine displaying a message telling SRAM is corrupted.
I made breakpoints to the SRAM are and found something strange : the error message is displayed if the SRAM is not starting by the ASCII text :
Code: Select all
- LORD MONARCH -
Nevertheless, it is present with the original ROM, but is not with my enlarged version.
Are there ways of writing in SRAM that would bypass breakpoints ? (some kind of DMA)
Are there bytes that are automatically copied to SRAM ?
Other ideas ?