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 /ppu/memory.go | |
| parent | 96ff6d8eda2ba434682909f4ff4ce350d78b2273 (diff) | |
| download | gones-99cae5a5a37f41f878a84857361eda47910303ba.tar.gz gones-99cae5a5a37f41f878a84857361eda47910303ba.zip | |
sprites!!!!!!
Diffstat (limited to 'ppu/memory.go')
| -rw-r--r-- | ppu/memory.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ppu/memory.go b/ppu/memory.go index 3379242..d2b0a54 100644 --- a/ppu/memory.go +++ b/ppu/memory.go @@ -2,12 +2,6 @@ package ppu import "crecher.net/gones/v2/cart" -// maps a $2000-$3EFF address onto an offset into the 2KB of nametable RAM, -// according to the cartridge's mirroring mode. four-screen carts will be -// expected to use their own extra 2KB of RAM via the mapper, but since no -// implemented mapper does that yet, four-screen just falls back to the vertical -// mirroring as a placeholder - func (p *PPU) nametableOffset(addr uint16) int { addr &= 0x0FFF table := addr / 0x400 |