Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ SetUpCPU
Function
SetUpCPU
cpu/cpu_test.go:14–16 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
12
var
MEMORY *memory.Memory64K = memory.NewMemory64K(BUS)
13
14
func
SetUpCPU() *CPU {
15
return
NewCPU(BUS, MEMORY)
16
}
17
18
func
ClearMem() {
19
for
i := uint16(0); i < 65535; i++ {
Callers
15
TestIARIncrementedOnEveryCycle
Function · 0.85
TestInstructionReceivedFromMemory
Function · 0.85
TestFlagsRegisterAllFalse
Function · 0.85
TestFlagsRegisterCarryFlagEnabled
Function · 0.85
TestFlagsRegisterIsLargerFlagEnabled
Function · 0.85
TestFlagsRegisterIsEqualsFlagEnabled
Function · 0.85
TestFlagsRegisterIsZeroFlagEnabled
Function · 0.85
TestFlagsRegisterMultipleEnabled
Function · 0.85
TestSTThenLD
Function · 0.85
TestLD4Times
Function · 0.85
testLD
Function · 0.85
testST
Function · 0.85
Calls
1
NewCPU
Function · 0.85
Tested by
no test coverage detected