summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosHexfile.java
diff options
context:
space:
mode:
Diffstat (limited to 'ao-tools/altosui/AltosHexfile.java')
-rw-r--r--ao-tools/altosui/AltosHexfile.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/ao-tools/altosui/AltosHexfile.java b/ao-tools/altosui/AltosHexfile.java
index c7078877..360e24ad 100644
--- a/ao-tools/altosui/AltosHexfile.java
+++ b/ao-tools/altosui/AltosHexfile.java
@@ -214,6 +214,10 @@ public class AltosHexfile {
public int address;
public byte[] data;
+ public byte get_byte(int a) {
+ return data[a - address];
+ }
+
public AltosHexfile(FileInputStream file) throws IOException {
HexFileInputStream input = new HexFileInputStream(file);
LinkedList<HexRecord> record_list = new LinkedList<HexRecord>();
@@ -244,5 +248,7 @@ public class AltosHexfile {
data[records[i].address - base + j] = records[i].data[j];
}
}
+ for (int i = 0xa0; i < 0xaa; i++)
+ System.out.printf ("%04x: %02x\n", i, get_byte(i));
}
} \ No newline at end of file