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

Method SetIAR

cpu/cpu.go:522–531  ·  view source on GitHub ↗

Jump IAR

(address uint16)

Source from the content-addressed store, hash-verified

520
521// Jump IAR
522func (c *CPU) SetIAR(address uint16) {
523 c.mainBus.SetValue(address)
524
525 updateSetStatus(&c.iar, true)
526 runUpdateOn(&c.iar)
527 updateSetStatus(&c.iar, false)
528 runUpdateOn(&c.iar)
529
530 c.clearMainBus()
531}
532
533func (c *CPU) Step() {
534 for i := 0; i < 2; i++ {

Callers 15

TestSTThenLDFunction · 0.80
TestLD4TimesFunction · 0.80
testLDFunction · 0.80
testSTFunction · 0.80

Calls 4

clearMainBusMethod · 0.95
updateSetStatusFunction · 0.85
runUpdateOnFunction · 0.85
SetValueMethod · 0.80

Tested by 15

TestSTThenLDFunction · 0.64
TestLD4TimesFunction · 0.64
testLDFunction · 0.64
testSTFunction · 0.64