summaryrefslogtreecommitdiffstats
path: root/src/core/arm/interpreter/arm_interpreter.h
blob: 932046d9a5ac6b1e98bd92a99b8a013a2eaf9a5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.  

#pragma once

#include "common/common.h"

#include "core/arm/arm_interface.h"
#include "core/arm/interpreter/armdefs.h"
#include "core/arm/interpreter/armemu.h"

class ARM_Interpreter : virtual public ARM_Interface {
public:
    ARM_Interpreter();
    ~ARM_Interpreter();

    void ExecuteInstruction();

    void SetPC(u32 pc);

    u32 GetPC() const;

    u32 GetReg(int index) const;

    u32 GetCPSR() const;

    u64 GetTicks() const;

private:
    ARMul_State* m_state;

    DISALLOW_COPY_AND_ASSIGN(ARM_Interpreter);
};