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

Function TestFlagsRegisterIsZeroFlagEnabled

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

Source from the content-addressed store, hash-verified

108}
109
110func TestFlagsRegisterIsZeroFlagEnabled(t *testing.T) {
111 ClearMem()
112 c := SetUpCPU()
113
114 setMemoryLocation(c, 0x0000, 0x0081)
115 setRegisters(c, [4]uint16{0x0001, 0xFFFF, 0x0002, 0x0003})
116 c.SetIAR(0x0000)
117
118 doFetchDecodeExecute(c)
119
120 checkFlagsRegister(c, true, false, false, true, t)
121}
122
123func TestFlagsRegisterMultipleEnabled(t *testing.T) {
124 ClearMem()

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