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

Method runSetOnIAR

cpu/cpu.go:854–865  ·  view source on GitHub ↗
(state bool)

Source from the content-addressed store, hash-verified

852}
853
854func (c *CPU) runSetOnIAR(state bool) {
855 c.iarSetORGate.Update(
856 c.stepper.GetOutputWire(2),
857 c.step4Gates[4].Output(),
858 c.step5Gates[4].Output(),
859 c.step5Gates[5].Output(),
860 c.step6Gates2And.Output(),
861 c.step6Gates[1].Output(),
862 )
863 c.iarSetANDGate.Update(state, c.iarSetORGate.Output())
864 updateSetStatus(&c.iar, c.iarSetANDGate.Output())
865}
866
867func (c *CPU) runSetOnIR(state bool) {
868 c.irSetANDGate.Update(state, c.stepper.GetOutputWire(1))

Callers 1

runSetMethod · 0.95

Calls 4

updateSetStatusFunction · 0.85
UpdateMethod · 0.65
GetOutputWireMethod · 0.65
OutputMethod · 0.45

Tested by

no test coverage detected