Regression in spitting out wrong `jr` targets
mid-kid opened this issue · 1 comments
mid-kid commented
commit 298ccf7 has caused a regression regardling how jr
targets are calculated in non-tiny mode.
Building a disassembled pokemon crystal, for example, causes these errors:
$ make
rgbasm -o game.o game.asm
rgblink -n game.sym -m game.map -o game.gbc game.o
error: game.asm(97) -> bank_04c.asm(14288): jr target out of reach (expected -129 < -16328 < 128)
error: game.asm(96) -> bank_04b.asm(14181): jr target out of reach (expected -129 < -16260 < 128)
error: game.asm(148) -> bank_07f.asm(16332): jr target out of reach (expected -129 < -16317 < 128)
error: game.asm(109) -> bank_058.asm(14228): jr target out of reach (expected -129 < -16257 < 128)
error: game.asm(103) -> bank_052.asm(14406): jr target out of reach (expected -129 < -16272 < 128)
Linking failed with 5 errors
make: *** [Makefile:13: game.gbc] Error 1
mattcurrie commented
Thanks for reporting!