Tests for AddressDecoder. Fixed a bug in isComplete().
This commit is contained in:
1 parent
af7743b385
commit
0e212e71e5
7 files changed
+229
-32
No files matched your search
@@ -58,4 +58,12 @@ public class MemoryRange implements Comparable<MemoryRange> {
|
||||
Integer thatStartAddr = new Integer(other.getStartAddress());
|
||||
return thisStartAddr.compareTo(thatStartAddr);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuffer desc = new StringBuffer("@");
|
||||
desc.append(String.format("0x%04x", startAddress));
|
||||
desc.append("-");
|
||||
desc.append(String.format("0x%04x", endAddress));
|
||||
return desc.toString();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user