Skip to content

Commit

Permalink
Fixed broken disassembler output (data bytes inspector view)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed May 9, 2023
1 parent fc767ef commit 6621a0f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Emulator/Components/CPU/Peddle/PeddleDisassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ Disassembler::disassembleFlags(char *str) const
void
Disassembler::dumpByte(char *str, u8 value) const
{
StrWriter(str, dataStyle) << value;
StrWriter(str, dataStyle) << value << '\0';
}

void
Disassembler::dumpWord(char *str, u16 value) const
{
StrWriter(str, dataStyle) << value;
StrWriter(str, dataStyle) << value << '\0';
}

void
Expand All @@ -135,6 +135,7 @@ Disassembler::dumpBytes(char *str, u32 addr, isize cnt) const
if (i) writer << " ";
writer << cpu.readDasm(U16_ADD(addr, i));
}
writer << '\0';
}

void
Expand All @@ -147,6 +148,7 @@ Disassembler::dumpBytes(char *str, u8 values[], isize cnt) const
if (i) writer << " ";
writer << values[i];
}
writer << '\0';
}

void
Expand All @@ -160,6 +162,7 @@ Disassembler::dumpWords(char *str, u32 addr, isize cnt) const
writer << u16(HI_LO(cpu.readDasm(U16_ADD(addr, 2 * i)),
cpu.readDasm(U16_ADD(addr, 2 * i + 1))));
}
writer << '\0';
}

void
Expand All @@ -172,7 +175,7 @@ Disassembler::dumpWords(char *str, u16 values[], isize cnt) const
if (i) writer << " ";
writer << values[i];
}

writer << '\0';
}

void
Expand Down

0 comments on commit 6621a0f

Please sign in to comment.