mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
added a tick counter
This commit is contained in:
parent
31abc42d3d
commit
c1dfa75845
|
@ -35,13 +35,21 @@ public:
|
||||||
~ARM_Interface() {
|
~ARM_Interface() {
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void ExecuteInstruction() = 0;
|
void Step() {
|
||||||
|
ExecuteInstruction();
|
||||||
|
ticks_++;
|
||||||
|
}
|
||||||
|
|
||||||
virtual void SetPC(u32 pc) = 0;
|
virtual void SetPC(u32 pc) = 0;
|
||||||
|
|
||||||
virtual u32 PC() = 0;
|
virtual u32 PC() = 0;
|
||||||
|
|
||||||
virtual u32 Reg(int index) = 0;
|
virtual u32 Reg(int index) = 0;
|
||||||
|
|
||||||
virtual u32 CPSR() = 0;
|
virtual u32 CPSR() = 0;
|
||||||
|
|
||||||
|
u64 ticks() { return ticks_; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
virtual void ExecuteInstruction() = 0;
|
||||||
|
|
||||||
|
u64 ticks_;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue