This post is part of the Stack Based Virtual Machines series. In the previous part we have implemented an “if” and a “while” statement. In this part, we’ll extend our virtual machine and add support for function calls! The status of the code at the time of this article can be seen on GitHub. Calling a function A function is generally nothing more than a particular address that the code jumps to.