diff options
| author | crecher <crecher@crecher.net> | 2026-10-13 01:13:13 +0200 |
|---|---|---|
| committer | crecher <crecher@crecher.net> | 2026-10-13 01:13:13 +0200 |
| commit | 99cae5a5a37f41f878a84857361eda47910303ba (patch) | |
| tree | 31c8665ca991f95e09e93bb2e6ec91d81d2427ff /cpu/cpu.go | |
| parent | 96ff6d8eda2ba434682909f4ff4ce350d78b2273 (diff) | |
| download | gones-99cae5a5a37f41f878a84857361eda47910303ba.tar.gz gones-99cae5a5a37f41f878a84857361eda47910303ba.zip | |
sprites!!!!!!
Diffstat (limited to 'cpu/cpu.go')
| -rw-r--r-- | cpu/cpu.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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++ |