aboutsummaryrefslogtreecommitdiff
path: root/asm/lexer.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-11-08 18:12:52 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-11-08 18:12:52 +0000
commit8fa40d8515daeaafe74e686265e7f3104ae76b65 (patch)
tree4289aa3aee4b693de384ebdf6b5c9872e85fe14f /asm/lexer.c
parent6e524569c34b0fb41c85280af5ea3f924999bbdf (diff)
downloadovm-8fa40d8515daeaafe74e686265e7f3104ae76b65.tar.gz
ovm-8fa40d8515daeaafe74e686265e7f3104ae76b65.tar.bz2
ovm-8fa40d8515daeaafe74e686265e7f3104ae76b65.zip
Fixed issue where, on error, runtime would show wrong instruction
When an error occurred, because prog->ptr was incremented beforehand the trace would show the next instruction as the culprit rather than the actual instruction. This commit fixes that by incrementing the program if and only if the command was run successfully.
Diffstat (limited to 'asm/lexer.c')
0 files changed, 0 insertions, 0 deletions