diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 6b9274f4f..a41aae11f 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -1615,7 +1615,6 @@ template struct TSequenceItem_Timer : public TSequenceItem FORCEINLINE void exec() { - u64 timer = nds_timer; u8* regs = procnum==0?MMU.ARM9_REG:MMU.ARM7_REG; bool first = true, over; //we'll need to check chained timers.. @@ -1937,7 +1936,7 @@ static void execHardware_hstart_vblankStart() execHardware_doAllDma(EDMAMode_VBlank); } -void execHardware_hstart_vcount() +static void execHardware_hstart_vcount() { u16 vmatch = T1ReadWord(MMU.ARM9_REG, 4); if(nds.VCount==((vmatch>>8)|((vmatch<<1)&(1<<8)))) diff --git a/desmume/src/NDSSystem.h b/desmume/src/NDSSystem.h index 8b4270ea9..87a470618 100644 --- a/desmume/src/NDSSystem.h +++ b/desmume/src/NDSSystem.h @@ -333,6 +333,8 @@ void NDS_Sleep(); void NDS_SkipNextFrame(); #define NDS_SkipFrame(s) if(s) NDS_SkipNext2DFrame(); +void execHardware_doAllDma(EDMAMode modeNum); + template void NDS_exec(s32 nb = 560190<<1); extern int lagframecounter;