all repos — mgba @ 6d898542c765f4efc4a094c5ebd3f3465c36f417

mGBA Game Boy Advance Emulator

src/arm/decoder-inlines.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 ARM_DECODER_INLINES_H
 7#define ARM_DECODER_INLINES_H
 8
 9#include "decoder.h"
10
11#include "arm.h"
12
13#include <stdio.h>
14#include <string.h>
15
16#define LOAD_CYCLES    \
17	info->iCycles = 1; \
18	info->nDataCycles = 1;
19
20#define STORE_CYCLES              \
21	info->sInstructionCycles = 0; \
22	info->nInstructionCycles = 1; \
23	info->nDataCycles = 1;
24
25#endif