diff options
| author | Bdale Garbee <bdale@gag.com> | 2018-08-05 11:21:37 +0800 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2018-08-05 11:21:37 +0800 | 
| commit | d8627bb7b46fc991786835afa38cd720e9e75812 (patch) | |
| tree | e14ae029a4ead29a4a7ccccb39af556e32413d36 /altoslib/AltosRomconfig.java | |
| parent | 59e23c27c2a85d7d748223e444b24d19937afe47 (diff) | |
| parent | 8830fbc99565f753c0ae1f3d9f4b079860c2634a (diff) | |
Merge branch 'master' into branch-1.8
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);  	}  | 
