diff options
Diffstat (limited to 'lib/xixanta/src')
| -rw-r--r-- | lib/xixanta/src/assembler.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xixanta/src/assembler.rs b/lib/xixanta/src/assembler.rs index 26d12b2..02414a7 100644 --- a/lib/xixanta/src/assembler.rs +++ b/lib/xixanta/src/assembler.rs @@ -83,7 +83,7 @@ impl MemoryRange { /// Display the range in hexadecimal format and by taking into consideration /// on whether it's really a range or a single value. pub fn range_to_human(&self) -> String { - if self.range.start + 1 == self.range.end { + if self.range.start + 1 >= self.range.end { if self.range.start <= 0xFF { return format!("${:02X}", self.range.start); } |
