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

Function ClearMem

cpu/cpu_test.go:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func ClearMem() {
19 for i := uint16(0); i < 65535; i++ {
20 setMemoryLocation2(MEMORY, i, 0x0000)
21 }
22 setMemoryLocation2(MEMORY, 0xFFFF, 0x0000)
23}
24
25func TestIARIncrementedOnEveryCycle(t *testing.T) {
26 ClearMem()

Callers 15

TestSTThenLDFunction · 0.85
TestLD4TimesFunction · 0.85
TestLDFunction · 0.85
TestSTFunction · 0.85

Calls 1

setMemoryLocation2Function · 0.85

Tested by

no test coverage detected