summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m37710/m7700ds.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m37710/m7700ds.h')
-rw-r--r--src/devices/cpu/m37710/m7700ds.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/devices/cpu/m37710/m7700ds.h b/src/devices/cpu/m37710/m7700ds.h
index 07bdaf49d48..f2c628212f3 100644
--- a/src/devices/cpu/m37710/m7700ds.h
+++ b/src/devices/cpu/m37710/m7700ds.h
@@ -1,12 +1,14 @@
// license:BSD-3-Clause
// copyright-holders:R. Belmont, Karl Stenerud
+#ifndef MAME_CPU_M37710_M7700DS_H
+#define MAME_CPU_M37710_M7700DS_H
+
#pragma once
-#ifndef __M7700DS_H__
-#define __M7700DS_H__
#ifdef __sun
#undef SEC
#endif
+
/*
Mitsubishi 7700 CPU Emulator v0.10
@@ -73,6 +75,7 @@ private:
public:
bool is_call() const { return m_name == op::JSR; }
bool is_return() const { return (m_name == op::RTS) || (m_name == op::RTI); }
+ bool is_bcond() const { return (ea == RELB && m_name != op::BRA) || (m_name == op::BBS) || (m_name == op::BBC); }
const char *name() const { return s_opnames[unsigned(m_name)]; }
static const m7700_opcode_struct &get(unsigned char ins) { return s_opcodes[ins]; }
@@ -102,4 +105,4 @@ private:
std::string int_16_str(unsigned int val);
};
-#endif /* __M7700DS_H__ */
+#endif /* MAME_CPU_M37710_M7700DS_H */