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

Function TestJMPA

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

Source from the content-addressed store, hash-verified

384}
385
386func TestJMPA(t *testing.T) {
387 ClearMem()
388 testJMPConditional(0x0054, 0x0020, 0x00F1, [4]uint16{0x0002, 0x0001, 0x0001, 0x002}, 0x0020, t)
389 // should not jump in false case
390 testJMPConditional(0x0054, 0x0021, 0x00F1, [4]uint16{0x0001, 0x0003, 0x0001, 0x0001}, 0x0003, t)
391}
392
393func TestJMPE(t *testing.T) {
394 ClearMem()

Callers

nothing calls this directly

Calls 2

ClearMemFunction · 0.85
testJMPConditionalFunction · 0.85

Tested by

no test coverage detected