diff options
author | Bdale Garbee <bdale@gag.com> | 2018-08-05 11:24:13 +0800 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2018-08-05 11:24:13 +0800 |
commit | a3b4f0d33e9d13fb5294397304ec0eb44ecaf1fc (patch) | |
tree | 69c563070ea7ca4a127f2ac925f18a36acb888bb /altoslib/AltosRomconfig.java | |
parent | 67da03d1382228a95d0414294703371cf32e666e (diff) | |
parent | 3a2a5a05bb6372d9003905cee7afdfcd6d38ae7e (diff) |
Merge branch 'branch-1.8' into debian
Diffstat (limited to 'altoslib/AltosRomconfig.java')
-rw-r--r-- | altoslib/AltosRomconfig.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/altoslib/AltosRomconfig.java b/altoslib/AltosRomconfig.java index 1fbb4115..44a3fa60 100644 --- a/altoslib/AltosRomconfig.java +++ b/altoslib/AltosRomconfig.java @@ -35,12 +35,12 @@ public class AltosRomconfig { System.out.printf("no symbol %s\n", name); throw new AltosNoSymbol(name); } - if (hexfile.address <= symbol.address && symbol.address + len < hexfile.max_address) { + if (hexfile.address <= symbol.address && symbol.address + len <= hexfile.max_address) { System.out.printf("%s: %x\n", name, symbol.address); return symbol.address; } - System.out.printf("invalid symbol addr %x range is %x - %x\n", - symbol.address, hexfile.address, hexfile.max_address); + System.out.printf("invalid symbol addr %x len %d range is %x - %x\n", + symbol.address, len, hexfile.address, hexfile.max_address); throw new AltosNoSymbol(name); } |