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

Method runSetOnFLAGS

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

Source from the content-addressed store, hash-verified

881}
882
883func (c *CPU) runSetOnFLAGS(state bool) {
884 c.flagsSetORGate.Update(
885 c.step5Gates[0].Output(),
886 c.step4Gates[7].Output(),
887 )
888 c.flagsSetANDGate.Update(state, c.flagsSetORGate.Output())
889 updateSetStatus(&c.flags, c.flagsSetANDGate.Output())
890}
891
892func (c *CPU) runSetOnRAM(state bool) {
893 c.ramSetANDGate.Update(state, c.step5Gates[2].Output())

Callers 1

runSetMethod · 0.95

Calls 3

updateSetStatusFunction · 0.85
UpdateMethod · 0.65
OutputMethod · 0.45

Tested by

no test coverage detected