Added getFormatted3ByteAddress.

This commit is contained in:
Robert Greene 2003-03-11 04:24:17 +00:00
parent fb6785cf37
commit dc2f36d6f1

View File

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