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

Method UpdateIncoming

io/display_ram.go:70–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (m *displayRAM) UpdateIncoming() {
71 m.InputAddressRegister.Update()
72 m.inputRowDecoder.Update(
73 m.InputAddressRegister.Bit(0),
74 m.InputAddressRegister.Bit(1),
75 m.InputAddressRegister.Bit(2),
76 m.InputAddressRegister.Bit(3),
77 m.InputAddressRegister.Bit(4),
78 m.InputAddressRegister.Bit(5),
79 m.InputAddressRegister.Bit(6),
80 m.InputAddressRegister.Bit(7),
81 )
82 m.inputColDecoder.Update(
83 m.InputAddressRegister.Bit(8),
84 m.InputAddressRegister.Bit(9),
85 m.InputAddressRegister.Bit(10),
86 m.InputAddressRegister.Bit(11),
87 m.InputAddressRegister.Bit(12),
88 m.InputAddressRegister.Bit(13),
89 m.InputAddressRegister.Bit(14),
90 m.InputAddressRegister.Bit(15),
91 )
92
93 var row int = m.inputRowDecoder.Index()
94 var col int = m.inputColDecoder.Index()
95
96 m.data[row][col].Update(m.set.Get(), false)
97}
98
99func (m *displayRAM) UpdateOutgoing() {
100 m.OutputAddressRegister.Update()

Callers 1

writeToDisplayRAMMethod · 0.80

Calls 4

BitMethod · 0.80
UpdateMethod · 0.65
IndexMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected