Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 724 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 724 Bytes

simple_interpreter

description

a simple interpreter, basically a custom language

info / credits

written in C++, using C++17 STL

credits to code vm article for the inspiration, I was looking into coding something like vmprotect and found this.

notes

jump / jump_if / copy:

all of these are a bit odd, the arguments they are assigned are actually + 1 of the argument (see void c_interpreter::execute_program()::21) because of the for loop.

add / sub / end_program / nop / test_eq:

none of these check their arguments

const_int:

currently only an int

print:

print relative stack location's arg