summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/deco222.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/deco222.cpp')
-rw-r--r--src/mame/machine/deco222.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mame/machine/deco222.cpp b/src/mame/machine/deco222.cpp
index 50478cc48bc..5be4df0bb60 100644
--- a/src/mame/machine/deco222.cpp
+++ b/src/mame/machine/deco222.cpp
@@ -34,7 +34,20 @@ uint8_t deco_222_device::mi_decrypt::read_sync(uint16_t adr)
return BITSWAP8(direct->read_byte(adr) ,7,5,6,4,3,2,1,0);
}
+util::disasm_interface *deco_222_device::create_disassembler()
+{
+ return new disassembler;
+}
+
+u32 deco_222_device::disassembler::interface_flags() const
+{
+ return SPLIT_DECRYPTION;
+}
+u8 deco_222_device::disassembler::decrypt8(u8 value, offs_t pc, bool opcode) const
+{
+ return opcode ? BITSWAP8(value,7,5,6,4,3,2,1,0) : value;
+}
deco_c10707_device::deco_c10707_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
m6502_device(mconfig, DECO_C10707, tag, owner, clock)
@@ -57,3 +70,18 @@ uint8_t deco_c10707_device::mi_decrypt::read_sync(uint16_t adr)
{
return BITSWAP8(direct->read_byte(adr) ,7,5,6,4,3,2,1,0);
}
+
+util::disasm_interface *deco_c10707_device::create_disassembler()
+{
+ return new disassembler;
+}
+
+u32 deco_c10707_device::disassembler::interface_flags() const
+{
+ return SPLIT_DECRYPTION;
+}
+
+u8 deco_c10707_device::disassembler::decrypt8(u8 value, offs_t pc, bool opcode) const
+{
+ return opcode ? BITSWAP8(value,7,5,6,4,3,2,1,0) : value;
+}