MCPcopy Index your code
hub / github.com/djhworld/simple-computer / updateKeycodeReg

Method updateKeycodeReg

io/keyboard.go:107–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107func (k *KeyboardAdapter) updateKeycodeReg() {
108 if k.andGate4.Output() {
109 k.keycodeRegister.Set()
110
111 k.keycodeRegister.Enable()
112 k.keycodeRegister.Update()
113 k.keycodeRegister.Disable()
114
115 // clear the register once everything is out
116 k.KeyboardInBus.SetValue(0x00)
117 k.keycodeRegister.Update()
118 k.keycodeRegister.Unset()
119 k.keycodeRegister.Update()
120 }
121}
122
123type Keyboard struct {
124 outBus *components.Bus

Callers 1

UpdateMethod · 0.95

Calls 7

SetValueMethod · 0.80
SetMethod · 0.65
EnableMethod · 0.65
UpdateMethod · 0.65
DisableMethod · 0.65
UnsetMethod · 0.65
OutputMethod · 0.45

Tested by

no test coverage detected