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

Function checkRegisters

cpu/cpu_test.go:1206–1211  ·  view source on GitHub ↗
(c *CPU, expReg0, expReg1, expReg2, expReg3 uint16, t *testing.T)

Source from the content-addressed store, hash-verified

1204}
1205
1206func checkRegisters(c *CPU, expReg0, expReg1, expReg2, expReg3 uint16, t *testing.T) {
1207 checkRegister(c, 0, expReg0, t)
1208 checkRegister(c, 1, expReg1, t)
1209 checkRegister(c, 2, expReg2, t)
1210 checkRegister(c, 3, expReg3, t)
1211}
1212
1213func setRegisters(c *CPU, values [4]uint16) {
1214 for i, v := range values {

Callers 11

TestSTThenLDFunction · 0.85
TestLD4TimesFunction · 0.85
testLDFunction · 0.85
TestDATAFunction · 0.85
testJMPRFunction · 0.85
testJMPFunction · 0.85
testALUAddWithCarryFunction · 0.85
testCMPFunction · 0.85
testInstructionFunction · 0.85
testShiftFunction · 0.85
testIOInputInstructionFunction · 0.85

Calls 1

checkRegisterFunction · 0.85

Tested by

no test coverage detected