mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Make some error messages more consistent (#1393)
* Update some error messages * Make non-A destination operand syntactically invalid
This commit is contained in:
@@ -817,7 +817,11 @@ void sect_PCRelByte(Expression &expr, uint32_t pcShift) {
|
||||
offset = sym->getValue() - (pc->getValue() + 1);
|
||||
|
||||
if (offset < -128 || offset > 127) {
|
||||
error("jr target out of reach (expected -129 < %" PRId16 " < 128)\n", offset);
|
||||
error(
|
||||
"jr target must be between -128 and 127 bytes away, not %" PRId16
|
||||
"; use jp instead\n",
|
||||
offset
|
||||
);
|
||||
writebyte(0);
|
||||
} else {
|
||||
writebyte(offset);
|
||||
|
||||
Reference in New Issue
Block a user