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

Method writeToInputMAR

io/display.go:111–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111func (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
132func (k *DisplayAdapter) writeToDisplayRAM() {
133 // if writeToRAM == true then put bus contents in RAM

Callers 1

UpdateMethod · 0.95

Calls 9

toggleWriteToRAMMethod · 0.95
IsDataModeMethod · 0.80
IsSetMethod · 0.80
IsOutputModeMethod · 0.80
UpdateMethod · 0.65
SetMethod · 0.65
UnsetMethod · 0.65
GetMethod · 0.45
OutputMethod · 0.45

Tested by

no test coverage detected