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

Method writeMirror

nes/mapper4.go:149–156  ·  view source on GitHub ↗
(value byte)

Source from the content-addressed store, hash-verified

147}
148
149func (m *Mapper4) writeMirror(value byte) {
150 switch value & 1 {
151 case 0:
152 m.Cartridge.Mirror = MirrorVertical
153 case 1:
154 m.Cartridge.Mirror = MirrorHorizontal
155 }
156}
157
158func (m *Mapper4) writeProtect(value byte) {
159}

Callers 1

writeRegisterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected