mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 11:12:07 +00:00
ROMX and WRAMX bank numers are stored in an object file as their number minus one. This means that this offset has to be applied somewhere. The old code applied the fix for ROMX and WRAMX in two different places. It looks like the patch that added support for WRAMX didn't set the offset correctly in 'src/link/assign.c'. When this was fixed, it was done in the wrong place, in 'src/asm/asm.y'. This patch moves the fix to 'src/link/assign.c'. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>