summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-04-05 07:23:28 +0200
committerbunnei <ericbunnie@gmail.com>2014-04-05 07:23:28 +0200
commitc1dfa75845b32d622f145879a9deed4c3e45b754 (patch)
tree60eddb38155b2944d6c50876818fc8cec6cc5ada
parentadded initial support for hw.cpp module (diff)
downloadyuzu-c1dfa75845b32d622f145879a9deed4c3e45b754.tar
yuzu-c1dfa75845b32d622f145879a9deed4c3e45b754.tar.gz
yuzu-c1dfa75845b32d622f145879a9deed4c3e45b754.tar.bz2
yuzu-c1dfa75845b32d622f145879a9deed4c3e45b754.tar.lz
yuzu-c1dfa75845b32d622f145879a9deed4c3e45b754.tar.xz
yuzu-c1dfa75845b32d622f145879a9deed4c3e45b754.tar.zst
yuzu-c1dfa75845b32d622f145879a9deed4c3e45b754.zip
-rw-r--r--src/core/src/arm/arm_interface.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/core/src/arm/arm_interface.h b/src/core/src/arm/arm_interface.h
index 785234396..80518a779 100644
--- a/src/core/src/arm/arm_interface.h
+++ b/src/core/src/arm/arm_interface.h
@@ -35,13 +35,21 @@ public:
~ARM_Interface() {
}
- virtual void ExecuteInstruction() = 0;
+ void Step() {
+ ExecuteInstruction();
+ ticks_++;
+ }
virtual void SetPC(u32 pc) = 0;
-
virtual u32 PC() = 0;
-
virtual u32 Reg(int index) = 0;
+ virtual u32 CPSR() = 0;
+
+ u64 ticks() { return ticks_; }
+
+private:
+
+ virtual void ExecuteInstruction() = 0;
- virtual u32 CPSR() = 0;
+ u64 ticks_;
};