This commit is contained in:
prod2 2022-01-27 01:39:20 +01:00
parent a1445f4f62
commit 5e18fd7b8d
1 changed files with 0 additions and 5 deletions

5
vm.nim
View File

@ -53,10 +53,6 @@ proc run*(chunk: Chunk): InterpretResult =
stack.add(val)
true
proc advance(): uint8 =
result = ip[]
ip = ip.padd(1)
proc readDU8(): int =
result = ip.DU8ptrToInt
ip = ip.padd(argSize)
@ -82,7 +78,6 @@ proc run*(chunk: Chunk): InterpretResult =
while true:
{.computedgoto.} # See https://nim-lang.org/docs/manual.html#pragmas-computedgoto-pragma
#let ins = advance().OpCode
let ins = ip[].OpCode
ip = ip.padd(1)