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

Method runSetOnRegisterB

cpu/cpu.go:909–918  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

907}
908
909func (c *CPU) runSetOnRegisterB() {
910 c.registerBSetORGate.Update(
911 c.step5Gates[1].Output(),
912 c.step6Gates[0].Output(),
913 c.step5Gates[3].Output(),
914 c.step5Gate3And.Output(),
915 )
916
917 c.registerBSet.Update(c.registerBSetORGate.Output())
918}
919
920func (c *CPU) runSetGeneralPurposeRegisters(state bool) {
921 c.instructionDecoderSet2x4.Update(c.ir.Bit(14), c.ir.Bit(15))

Callers 1

runSetMethod · 0.95

Calls 2

UpdateMethod · 0.65
OutputMethod · 0.45

Tested by

no test coverage detected