mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-08-13 01:25:05 +00:00
Start 1.3.4.2; accept hex start address ($<addr>) in -p command.
This commit is contained in:
@@ -40,7 +40,7 @@ import com.webcodepro.applecommander.util.TextBundle;
|
|||||||
* @author Rob Greene
|
* @author Rob Greene
|
||||||
*/
|
*/
|
||||||
public class AppleCommander {
|
public class AppleCommander {
|
||||||
public static final String VERSION = "1.3.4.1"; //$NON-NLS-1$
|
public static final String VERSION = "1.3.4.2"; //$NON-NLS-1$
|
||||||
private static TextBundle textBundle = UiBundle.getInstance();
|
private static TextBundle textBundle = UiBundle.getInstance();
|
||||||
/**
|
/**
|
||||||
* Launch AppleCommander.
|
* Launch AppleCommander.
|
||||||
|
@@ -303,9 +303,14 @@ public class ac {
|
|||||||
static int stringToInt(String s) {
|
static int stringToInt(String s) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
try {
|
try {
|
||||||
i = Integer.parseInt(s.trim());
|
s = s.trim();
|
||||||
} catch (NumberFormatException ignored) {
|
if (s.startsWith("$")) {
|
||||||
// ignored
|
i = Integer.parseInt(s.substring(1), 0x10);
|
||||||
|
} else {
|
||||||
|
i = Integer.parseInt(s);
|
||||||
|
}
|
||||||
|
} catch (NumberFormatException nfe) {
|
||||||
|
i = 0x2000;
|
||||||
}
|
}
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user