5.2 Stack

The stack shoud be implemented as a contiguous array of bytes with the following characteristics:

  1. Stack Management

    To perform function calls, the VM must maintains the stack pointer. It points to the start of the current stack local context. it is modified by the instructions call and ret.