aboutsummaryrefslogtreecommitdiff
path: root/src/inst.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-22 22:01:14 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-22 22:02:53 +0100
commit7243ac253398708c79ed3883fe83d31037b4ce93 (patch)
tree6ec3bbe7cec9be7243fad727127f31eb3498e59a /src/inst.c
parent1962aabdf5d5aa69e52afdeead360ccb4c0c9a49 (diff)
downloadovm-7243ac253398708c79ed3883fe83d31037b4ce93.tar.gz
ovm-7243ac253398708c79ed3883fe83d31037b4ce93.tar.bz2
ovm-7243ac253398708c79ed3883fe83d31037b4ce93.zip
Coupled some routines together, implemented OP_PLUS_*, -vm_peek
Routines that use the stack for their operands i.e. aren't supplied operands directly all have the same signature. We may as well stick them all together in one array and one conditional, just reduces the number of branches. Also looks nicer. Implemented OP_PLUS_*. Pretty simple to implement. Deleted vm_peek as it was only necessary to update the `ret` register.
Diffstat (limited to 'src/inst.c')
0 files changed, 0 insertions, 0 deletions