summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2018-05-16 19:37:27 -0400
committer arbee <rb6502@users.noreply.github.com>2018-05-16 19:37:27 -0400
commitbaf8ad945d8f94ddb6e5f4603575f5dcf64adaf3 (patch)
tree66363c6312c7bc8f851a7c45f140ec7ff6e1322b /src/devices
parent70c9f899957d0472aa2756ea30f576a79ad78468 (diff)
D'oh. (nw)
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/cpu/sh/sh.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/devices/cpu/sh/sh.h b/src/devices/cpu/sh/sh.h
index 0eeba80d23c..a78d45e3338 100644
--- a/src/devices/cpu/sh/sh.h
+++ b/src/devices/cpu/sh/sh.h
@@ -63,6 +63,13 @@
#define SH_FLAGS (SH_M|SH_Q|SH_I|SH_S|SH_T)
+/* SR shift values */
+#define T_SHIFT 0
+#define S_SHIFT 1
+#define I_SHIFT 4
+#define Q_SHIFT 8
+#define M_SHIFT 9
+
#define REGFLAG_R(n) (1 << (n))
/* register flags 1 */