/* ------------------------------------------------------------------------- */
/* "asm" : The Inform assembler */
/* */
-/* Copyright (c) Graham Nelson 1993 - 2018 */
-/* */
-/* This file is part of Inform. */
+/* Part of Inform 6.35 */
+/* copyright (c) Graham Nelson 1993 - 2021 */
/* */
/* Inform is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
((form_len == 2) ? "short" : "long")));
}
if (form_len == 1) {
- if (addr < -0x80 && addr >= 0x80) {
+ if (addr < -0x80 || addr >= 0x80) {
error("*** Label out of range for byte branch ***");
}
- zcode_holding_area[i] = (addr) & 0xFF;
+ zcode_holding_area[i] = (addr) & 0xFF;
}
else if (form_len == 2) {
- if (addr < -0x8000 && addr >= 0x8000) {
+ if (addr < -0x8000 || addr >= 0x8000) {
error("*** Label out of range for short branch ***");
}
zcode_holding_area[i] = (addr >> 8) & 0xFF;