diff options
author | StapleButter <thetotalworm@gmail.com> | 2016-12-03 01:31:33 +0100 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2016-12-03 01:31:33 +0100 |
commit | 23d584ca4c86e5e75947ef4edc1f06e1fbedc2e6 (patch) | |
tree | be468f9e7ba82ddfe81d536bcb7bffeddcb3ccac /ARMInterpreter_LoadStore.h | |
parent | 97ec988daeaa1fc05745e15e0816f1f84d94982b (diff) |
implement LDR/STR/LDRB/STRB.
more macro soup.
Diffstat (limited to 'ARMInterpreter_LoadStore.h')
-rw-r--r-- | ARMInterpreter_LoadStore.h | 29 |
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 + |