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

Method Run

io/display.go:176–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174}
175
176func (s *ScreenControl) Run() {
177 for {
178 select {
179 case <-s.quit:
180 log.Println("Stopping screen control")
181 return
182 default:
183 <-s.clock
184 s.Update()
185 s.outputChan <- &s.output
186 }
187 }
188}
189
190func (s *ScreenControl) Update() {
191 widthInBytes := uint16(30) // 30 * 8 = 240

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected