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

Method fetchAttributeTableByte

nes/ppu.go:467–472  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

465}
466
467func (ppu *PPU) fetchAttributeTableByte() {
468 v := ppu.v
469 address := 0x23C0 | (v & 0x0C00) | ((v >> 4) & 0x38) | ((v >> 2) & 0x07)
470 shift := ((v >> 4) & 4) | (v & 2)
471 ppu.attributeTableByte = ((ppu.Read(address) >> shift) & 3) << 2
472}
473
474func (ppu *PPU) fetchLowTileByte() {
475 fineY := (ppu.v >> 12) & 7

Callers 1

StepMethod · 0.95

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected