include/mgba/internal/arm/isa-arm.h (view raw)
1/* Copyright (c) 2013-2014 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#ifndef ISA_ARM_H
7#define ISA_ARM_H
8
9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13#define ARM_PREFETCH_CYCLES (1 + cpu->memory.activeSeqCycles32)
14
15struct ARMCore;
16
17typedef void (*ARMInstruction)(struct ARMCore*, uint32_t opcode);
18extern const ARMInstruction ARMv4InstructionTable[0x1000];
19extern const ARMInstruction ARMv5InstructionTable[0x1000];
20extern const ARMInstruction ARMv4FInstructionTable[0x1000];
21extern const ARMInstruction ARMv5FInstructionTable[0x1000];
22
23CXX_GUARD_END
24
25#endif