diff options
| author | Bdale Garbee <bdale@gag.com> | 2018-03-18 15:50:16 -0600 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2018-03-18 15:50:16 -0600 | 
| commit | 55b62bb5d6a9d6b484bcd0d802964d529dd5f9bb (patch) | |
| tree | 1a93442d43fcad172879d76629d4ed47ce3d6575 /altoslib/AltosFlash.java | |
| parent | 558d2c94fe8c49d0544a3e7bc5ba11b60c4faa1e (diff) | |
| parent | 59e23c27c2a85d7d748223e444b24d19937afe47 (diff) | |
Merge branch 'branch-1.8' into debian
Diffstat (limited to 'altoslib/AltosFlash.java')
| -rw-r--r-- | altoslib/AltosFlash.java | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/altoslib/AltosFlash.java b/altoslib/AltosFlash.java index c8db1f77..9bf0da25 100644 --- a/altoslib/AltosFlash.java +++ b/altoslib/AltosFlash.java @@ -254,7 +254,7 @@ public class AltosFlash extends AltosProgrammer {  			clock_init();  			int remain = image.data.length; -			int flash_addr = image.address; +			int flash_addr = (int) image.address;  			int image_start = 0;  			action("start", 0); @@ -295,7 +295,7 @@ public class AltosFlash extends AltosProgrammer {  			if (!aborted) {  				action("done", 100);  				if (debug != null) { -					debug.set_pc(image.address); +					debug.set_pc((int) image.address);  					debug.resume();  				}  			} @@ -331,12 +331,16 @@ public class AltosFlash extends AltosProgrammer {  		rom_config = romconfig;  	} -	public AltosRomconfig romconfig() throws InterruptedException { +	public AltosRomconfig target_romconfig() throws InterruptedException {  		if (!check_rom_config())  			return null;  		return rom_config;  	} +	public AltosRomconfig image_romconfig() { +		return new AltosRomconfig(image); +	} +  	public AltosFlash(File file, AltosLink link, AltosFlashListener listener)  		throws IOException, FileNotFoundException, InterruptedException {  		this.file = file;  | 
