summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-10-24 08:15:21 -0400
committer Nathan Woods <npwoods@mess.org>2016-10-24 08:15:47 -0400
commit4c43c595c33fadabf74bfb7ec524456a4d71e54d (patch)
treef0bc8ddc4cb9f192647f7373a921c760314bc49e
parent293bfef845a34767f6294b87794162f01c07f070 (diff)
Changing this from an assert() to something that always executes (fixing a clang compile error)
-rw-r--r--src/devices/cpu/m6809/6x09dasm.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/devices/cpu/m6809/6x09dasm.cpp b/src/devices/cpu/m6809/6x09dasm.cpp
index 89e0f92432c..b409ee0a2dd 100644
--- a/src/devices/cpu/m6809/6x09dasm.cpp
+++ b/src/devices/cpu/m6809/6x09dasm.cpp
@@ -119,6 +119,12 @@ namespace
m6x09_instruction_level m_level;
const opcodeinfo *fetch_opcode(const uint8_t *oprom, int &p);
+
+ void assert_hd6309_exclusive()
+ {
+ if (m_level < HD6309_EXCLUSIVE)
+ throw false;
+ }
};
}
@@ -264,7 +270,7 @@ offs_t m6x09_disassembler_base::disassemble(std::ostream &stream, offs_t pc, con
break;
case DIR_IM:
- assert(m_level >= HD6309_EXCLUSIVE);
+ assert_hd6309_exclusive();
util::stream_format(stream, "#$%02X;", operandarray[0]);
util::stream_format(stream, "$%02X", operandarray[1]);
break;
@@ -282,7 +288,7 @@ offs_t m6x09_disassembler_base::disassemble(std::ostream &stream, offs_t pc, con
case EXT:
if (numoperands == 3)
{
- assert(m_level >= HD6309_EXCLUSIVE);
+ assert_hd6309_exclusive();
pb = operandarray[0];
ea = (operandarray[1] << 8) + operandarray[2];
util::stream_format(stream, "#$%02X,$%04X", pb, ea);
@@ -297,7 +303,7 @@ offs_t m6x09_disassembler_base::disassemble(std::ostream &stream, offs_t pc, con
case IND:
if (numoperands == 2)
{
- assert(m_level >= HD6309_EXCLUSIVE);
+ assert_hd6309_exclusive();
util::stream_format(stream, "#$%02X;", operandarray[0]);
pb = operandarray[1];
}