@ -55,6 +55,12 @@ public:
*/
virtual u32 GetCPSR() const = 0;
/**
* Set the current CPSR register
* @param cpsr Value to set CPSR to
virtual void SetCPSR(u32 cpsr) = 0;
* Returns the number of clock ticks since the last rese
* @return Returns number of clock ticks
@ -77,6 +77,14 @@ u32 ARM_Interpreter::GetCPSR() const {
return m_state->Cpsr;
}
void ARM_Interpreter::SetCPSR(u32 cpsr) {
m_state->Cpsr = cpsr;
* Returns the number of clock ticks since the last reset
@ -48,6 +48,12 @@ public:
u32 GetCPSR() const;
void SetCPSR(u32 cpsr);