()
| 109 | } |
| 110 | |
| 111 | func (k *DisplayAdapter) writeToInputMAR() { |
| 112 | // if writeToRAM == false then put bus contents in Input-MAR |
| 113 | k.inputMarSetNOTGates[0].Update(k.writeToRAM.Get()) |
| 114 | |
| 115 | k.inputMARSetGate.Update( |
| 116 | k.ioBus.IsDataMode(), |
| 117 | k.ioBus.IsSet(), |
| 118 | k.ioBus.IsOutputMode(), |
| 119 | k.displayAdapterActiveBit.Get(), |
| 120 | k.inputMarSetNOTGates[0].Output(), |
| 121 | ) |
| 122 | |
| 123 | if k.inputMARSetGate.Output() { |
| 124 | k.displayRAM.InputAddressRegister.Set() |
| 125 | k.displayRAM.InputAddressRegister.Update() |
| 126 | k.displayRAM.InputAddressRegister.Unset() |
| 127 | k.displayRAM.InputAddressRegister.Update() |
| 128 | k.toggleWriteToRAM() |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | func (k *DisplayAdapter) writeToDisplayRAM() { |
| 133 | // if writeToRAM == true then put bus contents in RAM |
no test coverage detected