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

Function updateSetStatus

cpu/cpu.go:952–958  ·  view source on GitHub ↗
(component Settable, state bool)

Source from the content-addressed store, hash-verified

950}
951
952func updateSetStatus(component Settable, state bool) {
953 if state {
954 component.Set()
955 } else {
956 component.Unset()
957 }
958}

Callers 11

NewCPUFunction · 0.85
SetIARMethod · 0.85
runSetOnIOMethod · 0.85
runSetOnMARMethod · 0.85
runSetOnIARMethod · 0.85
runSetOnIRMethod · 0.85
runSetOnACCMethod · 0.85
runSetOnFLAGSMethod · 0.85
runSetOnRAMMethod · 0.85
runSetOnTMPMethod · 0.85

Calls 2

SetMethod · 0.65
UnsetMethod · 0.65

Tested by

no test coverage detected