Skip to content

Commit

Permalink
Fixed ASCII range
Browse files Browse the repository at this point in the history
  • Loading branch information
maccasoft committed May 23, 2023
1 parent 7c6dbe2 commit b053a95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ else if (addr1 >= pbase) {

for (int i = 0; i < BYTES_PER_ROW && addr < data.length; i++) {
e.gc.drawString(String.format("%02X", data[addr] & 0xFF), x1, y, true);
if (data[addr] >= 0x20 && data[addr] <= 0x7F) {
if (data[addr] >= 0x20 && data[addr] < 0x7F) {
e.gc.drawString(String.format("%c", data[addr] & 0xFF), x2, y, true);
}
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ else if (addr1 >= dbgsize) {

for (int i = 0; i < BYTES_PER_ROW && addr < data.length; i++) {
e.gc.drawString(String.format("%02X", data[addr] & 0xFF), x1, y, true);
if (data[addr] >= 0x20 && data[addr] <= 0x7F) {
if (data[addr] >= 0x20 && data[addr] < 0x7F) {
e.gc.drawString(String.format("%c", data[addr] & 0xFF), x2, y, true);
}
else {
Expand Down

0 comments on commit b053a95

Please sign in to comment.