MCPcopy
hub / github.com/fogleman/nes / readOAMData

Method readOAMData

nes/ppu.go:289–295  ·  view source on GitHub ↗

$2004: OAMDATA (read)

()

Source from the content-addressed store, hash-verified

287
288// $2004: OAMDATA (read)
289func (ppu *PPU) readOAMData() byte {
290 data := ppu.oamData[ppu.oamAddress]
291 if (ppu.oamAddress & 0x03) == 0x02 {
292 data = data & 0xE3
293 }
294 return data
295}
296
297// $2004: OAMDATA (write)
298func (ppu *PPU) writeOAMData(value byte) {

Callers 1

readRegisterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected