diff options
author | Ian C <ianc@noddybox.co.uk> | 2012-07-01 14:35:59 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2012-07-01 14:35:59 +0000 |
commit | bcf9a06fedbfc3978fe18a065fcc755bad2196ba (patch) | |
tree | e94fb22be148a4ce56b1ced30ddb8c264e79433a /src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs | |
parent | 11d53755f5fcb9158f4fe3abaa3c0b480a461fe7 (diff) |
Updates
Diffstat (limited to 'src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs')
-rw-r--r-- | src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs b/src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs index a802142..854cc9d 100644 --- a/src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs +++ b/src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs @@ -256,6 +256,16 @@ namespace Noddybox.Emulation.EightBit.Z80 }
}
+ public void Run(CpuCallback callback)
+ {
+ VBL = false;
+
+ do
+ {
+ Step();
+ } while (callback(this));
+ }
+
public void MaskableInterrupt(byte value)
{
raise = true;
|