MCPcopy Create free account
hub / github.com/fogleman/nes / writePRGBank

Method writePRGBank

nes/mapper1.go:152–155  ·  view source on GitHub ↗

PRG bank (internal, $E000-$FFFF)

(value byte)

Source from the content-addressed store, hash-verified

150
151// PRG bank (internal, $E000-$FFFF)
152func (m *Mapper1) writePRGBank(value byte) {
153 m.prgBank = value & 0x0F
154 m.updateOffsets()
155}
156
157func (m *Mapper1) prgBankOffset(index int) int {
158 if index >= 0x80 {

Callers 1

writeRegisterMethod · 0.95

Calls 1

updateOffsetsMethod · 0.95

Tested by

no test coverage detected