cleanup
This commit is contained in:
parent
a1445f4f62
commit
5e18fd7b8d
5
vm.nim
5
vm.nim
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue