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

Function TestFlagsRegisterMultipleEnabled

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

Source from the content-addressed store, hash-verified

121}
122
123func TestFlagsRegisterMultipleEnabled(t *testing.T) {
124 ClearMem()
125 c := SetUpCPU()
126
127 setMemoryLocation(c, 0x0000, 0x0081)
128 setRegisters(c, [4]uint16{0xFFFF, 0x0001, 0x0002, 0x0003})
129 c.SetIAR(0x0000)
130
131 doFetchDecodeExecute(c)
132
133 checkFlagsRegister(c, true, true, false, true, t)
134}
135func TestSTThenLD(t *testing.T) {
136 ClearMem()
137 c := SetUpCPU()

Callers

nothing calls this directly

Calls 7

ClearMemFunction · 0.85
SetUpCPUFunction · 0.85
setMemoryLocationFunction · 0.85
setRegistersFunction · 0.85
doFetchDecodeExecuteFunction · 0.85
checkFlagsRegisterFunction · 0.85
SetIARMethod · 0.80

Tested by

no test coverage detected