MCPcopy Create free account
hub / github.com/djhworld/simple-computer / Update

Method Update

io/display.go:190–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188}
189
190func (s *ScreenControl) Update() {
191 widthInBytes := uint16(30) // 30 * 8 = 240
192
193 y := uint16(0)
194 for vertical := uint16(0x0000); vertical < 0x12C0; vertical += widthInBytes {
195 x := uint16(0)
196 for horizontal := uint16(0x0000); horizontal < widthInBytes; horizontal++ {
197 s.setOutputRAMAddress(vertical + horizontal)
198 s.renderPixelsFromRAM(y, x)
199 x += 8
200 }
201 y++
202 }
203}
204
205func (s *ScreenControl) setOutputRAMAddress(address uint16) {
206 s.adapter.screenBus.SetValue(address)

Callers 1

RunMethod · 0.95

Calls 2

setOutputRAMAddressMethod · 0.95
renderPixelsFromRAMMethod · 0.95

Tested by

no test coverage detected