diff options
author | 2018-01-27 21:31:51 -0500 | |
---|---|---|
committer | 2018-01-27 21:32:19 -0500 | |
commit | ad726bd4518bedeeb9716c986039cb83006aa164 (patch) | |
tree | 100f5396c7a9a4a12dfb8a5079f93a9216ad040c | |
parent | b0755f50e606c85fc7348ddc47a993fc60ed30a0 (diff) |
lr35902: Fix disassembly
-rw-r--r-- | src/devices/cpu/lr35902/lr35902d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/lr35902/lr35902d.cpp b/src/devices/cpu/lr35902/lr35902d.cpp index 5b27f37778e..3a287c10851 100644 --- a/src/devices/cpu/lr35902/lr35902d.cpp +++ b/src/devices/cpu/lr35902/lr35902d.cpp @@ -181,7 +181,7 @@ offs_t lr35902_disassembler::disassemble(std::ostream &stream, offs_t pc, const int8_t offset; uint8_t op, op1; uint16_t ea; - int pos = 0; + int pos = pc; //symbol = nullptr; @@ -255,5 +255,5 @@ offs_t lr35902_disassembler::disassemble(std::ostream &stream, offs_t pc, const util::stream_format(stream, "%s", s_mnemonic[d->mnemonic]); } - return pos | s_flags[d->mnemonic] | SUPPORTED; + return (pos - pc) | s_flags[d->mnemonic] | SUPPORTED; } |