+ private AltosHexfile get_rom() {
+ System.out.printf("get rom\n");
+ try {
+ int base = AltosRomconfig.fetch_base(image);
+ int bounds = AltosRomconfig.fetch_bounds(image);
+ byte[] data = read_memory(base, bounds - base);
+ AltosHexfile hexfile = new AltosHexfile(data, base);
+ hexfile.add_symbols(image);
+ return hexfile;
+ } catch (AltosNoSymbol none) {
+ System.out.printf("no symbol %s\n", none.getMessage());
+ return null;
+ } catch (InterruptedException ie) {
+ return null;
+ } catch (IOException ie) {
+ return null;
+ }
+
+ }
+