mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-10-31 16:04:51 +00:00
Start 1.3.4.2; accept hex start address ($<addr>) in -p command.
This commit is contained in:
parent
76d6c21b89
commit
2dd931a0a0
@ -40,7 +40,7 @@ import com.webcodepro.applecommander.util.TextBundle;
|
||||
* @author Rob Greene
|
||||
*/
|
||||
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();
|
||||
/**
|
||||
* Launch AppleCommander.
|
||||
|
@ -303,9 +303,14 @@ public class ac {
|
||||
static int stringToInt(String s) {
|
||||
int i = 0;
|
||||
try {
|
||||
i = Integer.parseInt(s.trim());
|
||||
} catch (NumberFormatException ignored) {
|
||||
// ignored
|
||||
s = s.trim();
|
||||
if (s.startsWith("$")) {
|
||||
i = Integer.parseInt(s.substring(1), 0x10);
|
||||
} else {
|
||||
i = Integer.parseInt(s);
|
||||
}
|
||||
} catch (NumberFormatException nfe) {
|
||||
i = 0x2000;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user