summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/e132xs/32xsdasm.cpp
diff options
context:
space:
mode:
author Firehawke <Firehawke@users.noreply.github.com>2017-12-13 21:01:10 -0700
committer Firehawke <Firehawke@users.noreply.github.com>2017-12-13 21:01:10 -0700
commit54155441e9ba9941e85d80c4834a66376a11e791 (patch)
treeaa44bdaf0035cbe188d64c447f225f10f7d76d8d /src/devices/cpu/e132xs/32xsdasm.cpp
parentf537428e5a40ba6dde8ca9bf0fe9ae6b1f189ac4 (diff)
Revert "Merge branch 'master' of https://github.com/mamedev/mame"
This reverts commit f537428e5a40ba6dde8ca9bf0fe9ae6b1f189ac4, reversing changes made to 0d70d798107d4e4e8fb9f230410aeb1e888d65c5.
Diffstat (limited to 'src/devices/cpu/e132xs/32xsdasm.cpp')
-rw-r--r--src/devices/cpu/e132xs/32xsdasm.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/devices/cpu/e132xs/32xsdasm.cpp b/src/devices/cpu/e132xs/32xsdasm.cpp
index 339c7b9c0b0..2060350c5b8 100644
--- a/src/devices/cpu/e132xs/32xsdasm.cpp
+++ b/src/devices/cpu/e132xs/32xsdasm.cpp
@@ -391,31 +391,32 @@ u32 hyperstone_disassembler::opcode_alignment() const
return 2;
}
-hyperstone_disassembler::hyperstone_disassembler(config *conf) : m_config(conf)
-{
-}
-
/*****************************/
/* Main disassembly function */
/*****************************/
offs_t hyperstone_disassembler::disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer &params)
{
+ uint16_t op;
+ uint8_t op_num;
+
+ uint8_t source_code, dest_code, source_bit, dest_bit;
+
char source[5] = "\0", dest[5] = "\0";
uint32_t flags = 0;
- uint16_t op = opcodes.r16(pc);
+ op = opcodes.r16(pc);
size = 2;
- uint8_t source_code = SOURCECODE(op);
- uint8_t dest_code = DESTCODE(op);
- uint8_t source_bit = SOURCEBIT(op);
- uint8_t dest_bit = DESTBIT(op);
+ source_code = SOURCECODE(op);
+ dest_code = DESTCODE(op);
+ source_bit = SOURCEBIT(op);
+ dest_bit = DESTBIT(op);
- global_fp = m_config->get_fp();
- int h_flag = m_config->get_h();
+ global_fp = 0;
+ int h_flag = 0;
- uint8_t op_num = (op & 0xff00) >> 8;
+ op_num = (op & 0xff00) >> 8;
switch( op_num )
{