From bcf9a06fedbfc3978fe18a065fcc755bad2196ba Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 1 Jul 2012 14:35:59 +0000 Subject: Updates --- src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Noddybox.Emulation.EightBit.Z80/Z80Cpu.cs') 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; -- cgit v1.2.3