summaryrefslogtreecommitdiffstatshomepage
path: root/trunk/src/emu/cpu/dsp56k/dsp56def.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/emu/cpu/dsp56k/dsp56def.h')
-rw-r--r--trunk/src/emu/cpu/dsp56k/dsp56def.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/trunk/src/emu/cpu/dsp56k/dsp56def.h b/trunk/src/emu/cpu/dsp56k/dsp56def.h
new file mode 100644
index 00000000000..416653e7cd9
--- /dev/null
+++ b/trunk/src/emu/cpu/dsp56k/dsp56def.h
@@ -0,0 +1,55 @@
+///////////////////////////////////////////
+// All the macros that are fit to print. //
+///////////////////////////////////////////
+
+#ifndef __DSP56_DEF_H__
+#define __DSP56_DEF_H__
+
+#include "dsp56k.h"
+
+namespace DSP56K
+{
+
+/***************************************************************************
+ ALU
+***************************************************************************/
+#define X cpustate->ALU.x.d
+#define X1 cpustate->ALU.x.w.h
+#define X0 cpustate->ALU.x.w.l
+#define Y cpustate->ALU.y.d
+#define Y1 cpustate->ALU.y.w.h
+#define Y0 cpustate->ALU.y.w.l
+
+#define A cpustate->ALU.a.q
+#define A2 cpustate->ALU.a.b.h4
+#define A1 cpustate->ALU.a.w.h
+#define A0 cpustate->ALU.a.w.l
+#define B cpustate->ALU.b.q
+#define B2 cpustate->ALU.b.b.h4
+#define B1 cpustate->ALU.b.w.h
+#define B0 cpustate->ALU.b.w.l
+
+
+/***************************************************************************
+ AGU
+***************************************************************************/
+#define R0 cpustate->AGU.r0
+#define R1 cpustate->AGU.r1
+#define R2 cpustate->AGU.r2
+#define R3 cpustate->AGU.r3
+
+#define N0 cpustate->AGU.n0
+#define N1 cpustate->AGU.n1
+#define N2 cpustate->AGU.n2
+#define N3 cpustate->AGU.n3
+
+#define M0 cpustate->AGU.m0
+#define M1 cpustate->AGU.m1
+#define M2 cpustate->AGU.m2
+#define M3 cpustate->AGU.m3
+
+#define TEMP cpustate->AGU.temp
+
+} // namespace DSP56K
+
+#endif