()
| 105 | } |
| 106 | |
| 107 | func (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 | |
| 123 | type Keyboard struct { |
| 124 | outBus *components.Bus |