new evaluation engine: next steps

This commit is contained in:
Araq 2013-07-25 08:37:37 +02:00
commit 3e0899359b
3 changed files with 11 additions and 12 deletions

View file

@ -197,14 +197,10 @@ proc execute(c: PCtx, start: int) =
of opcYldYoid: assert false
of opcYldVal: assert false
of opcAsgnInt:
echo ra, " ", instr.regB, " ", regs.len, tos.prc.name.s
decodeB(nkIntLit)
regs[ra].intVal = regs[rb].intVal
of opcAsgnStr:
decodeB(nkStrLit)
debug regs[rb]
echo rb
Message(c.debug[pc], warnUser, " here")
regs[ra].strVal = regs[rb].strVal
of opcAsgnFloat:
decodeB(nkFloatLit)