MCPcopy Index your code
hub / github.com/djhworld/simple-computer / updateEnableStatus

Function updateEnableStatus

cpu/cpu.go:944–950  ·  view source on GitHub ↗
(component Enableable, state bool)

Source from the content-addressed store, hash-verified

942}
943
944func updateEnableStatus(component Enableable, state bool) {
945 if state {
946 component.Enable()
947 } else {
948 component.Disable()
949 }
950}
951
952func updateSetStatus(component Settable, state bool) {
953 if state {

Callers 7

NewCPUFunction · 0.85
runEnableOnIOMethod · 0.85
runEnableOnBusOneMethod · 0.85
runEnableOnACCMethod · 0.85
runEnableOnIARMethod · 0.85
runEnableOnRAMMethod · 0.85

Calls 2

EnableMethod · 0.65
DisableMethod · 0.65

Tested by

no test coverage detected