()
| 36 | } |
| 37 | |
| 38 | func NewKeyboardAdapter() *KeyboardAdapter { |
| 39 | k := new(KeyboardAdapter) |
| 40 | k.KeyboardInBus = components.NewBus(arch.BUS_WIDTH) |
| 41 | return k |
| 42 | } |
| 43 | |
| 44 | func (k *KeyboardAdapter) Connect(ioBus *components.IOBus, mainBus *components.Bus) { |
| 45 | k.ioBus = ioBus |