Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ TestJMP
Function
TestJMP
cpu/cpu_test.go:350–355 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
348
}
349
350
func
TestJMP(t *testing.T) {
351
ClearMem()
352
for
i := 0; i < 0x0400; i++ {
353
testJMP(uint16(i), t)
354
}
355
}
356
357
func
testJMP(expectedIAR uint16, t *testing.T) {
358
c := SetUpCPU()
Callers
nothing calls this directly
Calls
2
ClearMem
Function · 0.85
testJMP
Function · 0.85
Tested by
no test coverage detected