aboutsummaryrefslogtreecommitdiff
path: root/ARMInterpreter_LoadStore.h
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2016-12-03 01:31:33 +0100
committerStapleButter <thetotalworm@gmail.com>2016-12-03 01:31:33 +0100
commit23d584ca4c86e5e75947ef4edc1f06e1fbedc2e6 (patch)
treebe468f9e7ba82ddfe81d536bcb7bffeddcb3ccac /ARMInterpreter_LoadStore.h
parent97ec988daeaa1fc05745e15e0816f1f84d94982b (diff)
implement LDR/STR/LDRB/STRB.
more macro soup.
Diffstat (limited to 'ARMInterpreter_LoadStore.h')
-rw-r--r--ARMInterpreter_LoadStore.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/ARMInterpreter_LoadStore.h b/ARMInterpreter_LoadStore.h
new file mode 100644
index 0000000..f56a4fb
--- /dev/null
+++ b/ARMInterpreter_LoadStore.h
@@ -0,0 +1,29 @@
+
+#ifndef ARMINTERPRETER_LOADSTORE_H
+#define ARMINTERPRETER_LOADSTORE_H
+
+namespace ARMInterpreter
+{
+
+#define A_PROTO_WB_LDRSTR(x) \
+\
+s32 A_##x##_IMM(ARM* cpu); \
+s32 A_##x##_REG_LSL(ARM* cpu); \
+s32 A_##x##_REG_LSR(ARM* cpu); \
+s32 A_##x##_REG_ASR(ARM* cpu); \
+s32 A_##x##_REG_ROR(ARM* cpu); \
+s32 A_##x##_POST_IMM(ARM* cpu); \
+s32 A_##x##_POST_REG_LSL(ARM* cpu); \
+s32 A_##x##_POST_REG_LSR(ARM* cpu); \
+s32 A_##x##_POST_REG_ASR(ARM* cpu); \
+s32 A_##x##_POST_REG_ROR(ARM* cpu);
+
+A_PROTO_WB_LDRSTR(STR)
+A_PROTO_WB_LDRSTR(STRB)
+A_PROTO_WB_LDRSTR(LDR)
+A_PROTO_WB_LDRSTR(LDRB)
+
+}
+
+#endif
+