MCPcopy Index your code
hub / github.com/djhworld/simple-computer / renderPixelsFromRAM

Method renderPixelsFromRAM

io/display.go:213–228  ·  view source on GitHub ↗
(y, x uint16)

Source from the content-addressed store, hash-verified

211}
212
213func (s *ScreenControl) renderPixelsFromRAM(y, x uint16) {
214 s.adapter.displayRAM.Enable()
215 s.adapter.displayRAM.UpdateOutgoing()
216
217 for b := 8; b < 16; b++ {
218 if s.adapter.screenBus.GetOutputWire(b) {
219 s.output[y][x] = 0x01
220 } else {
221 s.output[y][x] = 0x00
222 }
223 x++
224 }
225
226 s.adapter.displayRAM.Disable()
227 s.adapter.displayRAM.UpdateOutgoing()
228}

Callers 1

UpdateMethod · 0.95

Calls 4

UpdateOutgoingMethod · 0.80
EnableMethod · 0.65
GetOutputWireMethod · 0.65
DisableMethod · 0.65

Tested by

no test coverage detected