flycast/core/hw/arm7/vbaARM.cpp

42 lines
679 B
C++
Raw Normal View History

2013-12-19 17:10:14 +00:00
// nullAICA.cpp : Defines the entry point for the DLL application.
//
#include "types.h"
#include "arm7.h"
#include "arm_mem.h"
//called when plugin is used by emu (you should do first time init here)
s32 libARM_Init()
{
init_mem();
arm_Init();
return rv_ok;
}
//called when plugin is unloaded by emu, only if dcInit is called (eg, not called to enumerate plugins)
2013-12-19 17:10:14 +00:00
void libARM_Term()
{
term_mem();
//arm7_Term ?
}
//It's supposed to reset anything
2013-12-19 17:10:14 +00:00
void libARM_Reset(bool Manual)
{
arm_Reset();
arm_SetEnabled(false);
}
void libARM_SetResetState(u32 state)
{
arm_SetEnabled(state==0);
}
//Mainloop
void libARM_Update(u32 Cycles)
{
arm_Run(Cycles/arm_sh4_bias);
}