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

Function NewKeyboardAdapter

io/keyboard.go:38–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

NewComputerFunction · 0.92

Calls 1

NewBusFunction · 0.92