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

Function TestJMPC

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

Source from the content-addressed store, hash-verified

377}
378
379func TestJMPC(t *testing.T) {
380 ClearMem()
381 testJMPConditional(0x0058, 0x0090, 0x0081, [4]uint16{0x0004, 0xFFFF, 0x0001, 0x002}, 0x0090, t)
382 // should not jump in false case
383 testJMPConditional(0x0058, 0x0091, 0x0081, [4]uint16{0x0005, 0x0006, 0x0001, 0x0001}, 0x0003, t)
384}
385
386func TestJMPA(t *testing.T) {
387 ClearMem()

Callers

nothing calls this directly

Calls 2

ClearMemFunction · 0.85
testJMPConditionalFunction · 0.85

Tested by

no test coverage detected