summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/mb88xx/mb88dasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/mb88xx/mb88dasm.cpp')
-rw-r--r--src/devices/cpu/mb88xx/mb88dasm.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/devices/cpu/mb88xx/mb88dasm.cpp b/src/devices/cpu/mb88xx/mb88dasm.cpp
index eced68233b0..2ab2856e1e8 100644
--- a/src/devices/cpu/mb88xx/mb88dasm.cpp
+++ b/src/devices/cpu/mb88xx/mb88dasm.cpp
@@ -10,14 +10,18 @@
*******************************************************************************/
#include "emu.h"
-#include "mb88xx.h"
+#include "mb88dasm.h"
+u32 mb88_disassembler::opcode_alignment() const
+{
+ return 1;
+}
-CPU_DISASSEMBLE(mb88)
+offs_t mb88_disassembler::disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer &params)
{
unsigned startpc = pc;
- uint8_t op = oprom[pc++ - startpc];
- uint8_t arg = oprom[pc - startpc];
+ uint8_t op = opcodes.r8(pc++);
+ uint8_t arg = opcodes.r8(pc);
switch( op )
{
@@ -220,5 +224,5 @@ CPU_DISASSEMBLE(mb88)
break;
}
- return (pc - startpc) | DASMFLAG_SUPPORTED;
+ return (pc - startpc) | SUPPORTED;
}