Start 1.3.4.2; accept hex start address ($<addr>) in -p command.

This commit is contained in:
John B. Matthews 2008-05-18 20:00:16 +00:00
parent 76d6c21b89
commit 2dd931a0a0
2 changed files with 9 additions and 4 deletions

View File

@ -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.

View File

@ -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;
}