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

Method fetchHighTileByte

nes/ppu.go:482–488  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

480}
481
482func (ppu *PPU) fetchHighTileByte() {
483 fineY := (ppu.v >> 12) & 7
484 table := ppu.flagBackgroundTable
485 tile := ppu.nameTableByte
486 address := 0x1000*uint16(table) + uint16(tile)*16 + fineY
487 ppu.highTileByte = ppu.Read(address + 8)
488}
489
490func (ppu *PPU) storeTileData() {
491 var data uint32

Callers 1

StepMethod · 0.95

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected