From 99cae5a5a37f41f878a84857361eda47910303ba Mon Sep 17 00:00:00 2001 From: crecher Date: Tue, 13 Oct 2026 01:13:13 +0200 Subject: sprites!!!!!! --- cpu/cpu.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpu/cpu.go') diff --git a/cpu/cpu.go b/cpu/cpu.go index 113adf0..b8b0a1e 100644 --- a/cpu/cpu.go +++ b/cpu/cpu.go @@ -111,6 +111,11 @@ func (c *CPU) interrupt(vector uint16, brk bool) { c.PC = c.read16(vector) } +// burns cycles without running anything, used while dma holds the cpu +func (c *CPU) Stall(cycles int) { + c.Cycles += uint64(cycles) +} + func (c *CPU) Step() int { if c.Jammed { c.Cycles++ -- cgit v1.2.3