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

Method runSet

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

Source from the content-addressed store, hash-verified

788}
789
790func (c *CPU) runSet(state bool) {
791 c.irInstructionANDGate.Update(c.ir.Bit(11), c.ir.Bit(10), c.ir.Bit(9))
792 c.irInstructionNOTGate.Update(c.irInstructionANDGate.Output())
793
794 c.refreshFlagStateGates()
795
796 c.runSetOnIO(state)
797 c.runSetOnMAR(state)
798 c.runSetOnIAR(state)
799 c.runSetOnIR(state)
800 c.runSetOnACC(state)
801 c.runSetOnRAM(state)
802 c.runSetOnTMP(state)
803 c.runSetOnFLAGS(state)
804 c.runSetOnRegisterB()
805 c.runSetGeneralPurposeRegisters(state)
806}
807
808func (c *CPU) refreshFlagStateGates() {
809 /*

Callers 1

stepMethod · 0.95

Calls 14

refreshFlagStateGatesMethod · 0.95
runSetOnIOMethod · 0.95
runSetOnMARMethod · 0.95
runSetOnIARMethod · 0.95
runSetOnIRMethod · 0.95
runSetOnACCMethod · 0.95
runSetOnRAMMethod · 0.95
runSetOnTMPMethod · 0.95
runSetOnFLAGSMethod · 0.95
runSetOnRegisterBMethod · 0.95
BitMethod · 0.80

Tested by

no test coverage detected