()
| 188 | } |
| 189 | |
| 190 | func (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 | |
| 205 | func (s *ScreenControl) setOutputRAMAddress(address uint16) { |
| 206 | s.adapter.screenBus.SetValue(address) |
no test coverage detected