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

Method runSetOnMAR

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

Source from the content-addressed store, hash-verified

839}
840
841func (c *CPU) runSetOnMAR(state bool) {
842 c.marSetORGate.Update(
843 c.stepper.GetOutputWire(0),
844 c.step4Gates[3].Output(),
845 c.step4Gates[6].Output(),
846 c.step4Gates[1].Output(),
847 c.step4Gates[2].Output(),
848 c.step4Gates[5].Output(),
849 )
850 c.marSetANDGate.Update(state, c.marSetORGate.Output())
851 updateSetStatus(&c.memory.AddressRegister, c.marSetANDGate.Output())
852}
853
854func (c *CPU) runSetOnIAR(state bool) {
855 c.iarSetORGate.Update(

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