MCPcopy Index your code
hub / github.com/fogleman/nes / fetchLowTileByte

Method fetchLowTileByte

nes/ppu.go:474–480  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

472}
473
474func (ppu *PPU) fetchLowTileByte() {
475 fineY := (ppu.v >> 12) & 7
476 table := ppu.flagBackgroundTable
477 tile := ppu.nameTableByte
478 address := 0x1000*uint16(table) + uint16(tile)*16 + fineY
479 ppu.lowTileByte = ppu.Read(address)
480}
481
482func (ppu *PPU) fetchHighTileByte() {
483 fineY := (ppu.v >> 12) & 7

Callers 1

StepMethod · 0.95

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected