summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/z80/z80dasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/z80/z80dasm.cpp')
-rw-r--r--src/devices/cpu/z80/z80dasm.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/devices/cpu/z80/z80dasm.cpp b/src/devices/cpu/z80/z80dasm.cpp
index a7b8e20d7e1..b59b3a38eb6 100644
--- a/src/devices/cpu/z80/z80dasm.cpp
+++ b/src/devices/cpu/z80/z80dasm.cpp
@@ -420,10 +420,9 @@ offs_t z80_disassembler::disassemble(std::ostream &stream, offs_t pc, const data
case 0xdd:
{
ixy = "ix";
- u8 op1 = opcodes.r8(pos);
+ u8 op1 = opcodes.r8(pos++);
if( op1 == 0xcb )
{
- pos++;
offset = params.r8(pos++);
op1 = params.r8(pos++);
d = &mnemonic_xx_cb[op1];
@@ -435,10 +434,9 @@ offs_t z80_disassembler::disassemble(std::ostream &stream, offs_t pc, const data
case 0xfd:
{
ixy = "iy";
- u8 op1 = opcodes.r8(pos);
+ u8 op1 = opcodes.r8(pos++);
if( op1 == 0xcb )
{
- pos++;
offset = params.r8(pos++);
op1 = params.r8(pos++);
d = &mnemonic_xx_cb[op1];