From 7182d905a43fa34ffe74e703c3a9ff1071f9ef38 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Tue, 1 Mar 2011 14:38:52 +0000 Subject: [PATCH] Get frame counter incrementing in the NES core. TODO: store it in savestates --- BizHawk.Emulation/Consoles/Nintendo/NES/NES.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/NES/NES.cs b/BizHawk.Emulation/Consoles/Nintendo/NES/NES.cs index a47e496df9..b83445fedb 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/NES/NES.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/NES/NES.cs @@ -307,7 +307,8 @@ namespace BizHawk.Emulation.Consoles.Nintendo { //TODO! //cpu.Execute(10000); - ppu.FrameAdvance(); + Controller.UpdateControls(Frame++); + ppu.FrameAdvance(); } protected void RunCpu(int cycles) @@ -405,10 +406,9 @@ namespace BizHawk.Emulation.Consoles.Nintendo //cpu.debug = true; } - public int Frame - { - get { return 0; } - } + public int Frame { get; set; } + + private byte Port01 = 0xFF; public bool DeterministicEmulation { get { return true; } set { } } public byte[] SaveRam