diff --git a/src/com/webcodepro/applecommander/storage/AppleUtil.java b/src/com/webcodepro/applecommander/storage/AppleUtil.java index 4fa60cd..515667a 100644 --- a/src/com/webcodepro/applecommander/storage/AppleUtil.java +++ b/src/com/webcodepro/applecommander/storage/AppleUtil.java @@ -268,6 +268,14 @@ public class AppleUtil { + getFormattedByte(word & 0x00ff); } + /** + * Format a 3 byte value as hexidecimal. + */ + public static String getFormatted3ByteAddress(int addr) { + return getFormattedByte((addr & 0xff0000) >> 16) + + getFormattedWord(addr & 0x00ffff); + } + /** * Convert a typical Apple formatted word. This is essentially * a hex string that may start with a '$' and has 1 - 4 digits.