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

Function TestFlagsRegisterIsLargerFlagEnabled

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

Source from the content-addressed store, hash-verified

82}
83
84func TestFlagsRegisterIsLargerFlagEnabled(t *testing.T) {
85 ClearMem()
86 c := SetUpCPU()
87
88 setMemoryLocation(c, 0x0000, 0x0081)
89 setRegisters(c, [4]uint16{0x0021, 0x0020, 0x0002, 0x0003})
90 c.SetIAR(0x0000)
91
92 doFetchDecodeExecute(c)
93
94 checkFlagsRegister(c, false, true, false, false, t)
95}
96
97func TestFlagsRegisterIsEqualsFlagEnabled(t *testing.T) {
98 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