mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 23:29:34 +00:00
Added getFormatted3ByteAddress.
This commit is contained in:
parent
fb6785cf37
commit
dc2f36d6f1
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user