I don't see a bug, just a jr with an out-of-range jump target, resulting in an error message from the assembler. An error message, that is technically correct, but not very helpful. jr has jump range -126 to +129, unlike jp, which has a bigger range. When you remove the last bock, the target is in range for jr.
Philipp
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't see a bug, just a jr with an out-of-range jump target, resulting in an error message from the assembler. An error message, that is technically correct, but not very helpful. jr has jump range -126 to +129, unlike jp, which has a bigger range. When you remove the last bock, the target is in range for jr.
Philipp
You're absolutely right, Philipp, thank you. Sorry for bother.