Make some error messages more consistent (#1393)

* Update some error messages

* Make non-A destination operand syntactically invalid
This commit is contained in:
Sylvie
2024-04-20 17:13:01 -04:00
committed by GitHub
parent 7aecc00919
commit 3e9d2cab12
6 changed files with 71 additions and 61 deletions

View File

@@ -461,7 +461,8 @@ static void applyFilePatches(Section &section, Section &dataSection) {
error(
patch.src,
patch.lineNo,
"jr target out of reach (expected -129 < %" PRId16 " < 128)",
"jr target must be between -128 and 127 bytes away, not %" PRId16
"; use jp instead\n",
jumpOffset
);
dataSection.data[offset] = jumpOffset & 0xFF;