Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Part#2 - CPU/olc6502.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,8 @@ std::map<uint16_t, std::string> olc6502::disassemble(uint16_t nStart, uint16_t n
else if (lookup[opcode].addrmode == &olc6502::REL)
{
value = bus->read(addr, true); addr++;
sInst += "$" + hex(value, 2) + " [$" + hex(addr + value, 4) + "] {REL}";
int8_t rel_value = (int8_t)value;
sInst += "$" + hex(value, 2) + " [$" + hex(addr + rel_value, 4) + "] {REL}";
}

// Add the formed string to a std::map, using the instruction's
Expand Down