Make memory an object

This commit is contained in:
Ian Gulliver
2021-11-16 16:15:46 -10:00
parent 1fdeaaf4cc
commit 012d5faecf
3 changed files with 51 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ func TestFirst(t *testing.T) {
t.Fatal(state)
}
if state.globalMemory[0] != 3 {
t.Fatal(state.globalMemory[0])
if state.globalMemory.mustReadUnsigned(0) != 3 {
t.Fatal(state.globalMemory.mustReadUnsigned(0))
}
}