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

View File

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