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

Function TestIARIncrementedOnEveryCycle

cpu/cpu_test.go:25–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23}
24
25func TestIARIncrementedOnEveryCycle(t *testing.T) {
26 ClearMem()
27 c := SetUpCPU()
28
29 c.SetIAR(0x0000)
30
31 var q uint16
32 for q = 0; q < 1000; q++ {
33 doFetchDecodeExecute(c)
34 checkIAR(c, q+1, t)
35 }
36}
37
38func TestInstructionReceivedFromMemory(t *testing.T) {
39 ClearMem()

Callers

nothing calls this directly

Calls 5

ClearMemFunction · 0.85
SetUpCPUFunction · 0.85
doFetchDecodeExecuteFunction · 0.85
checkIARFunction · 0.85
SetIARMethod · 0.80

Tested by

no test coverage detected