aboutsummaryrefslogtreecommitdiff
path: root/ppu/memory.go
diff options
context:
space:
mode:
Diffstat (limited to 'ppu/memory.go')
-rw-r--r--ppu/memory.go6
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