Modified type env so that it supports local vars and function arguments. Local vars are stored and accessed using the RSP register as reference (RSP - 8i). Function arguments are accessed using RBP register as reference (RBP + 8i).
Compiling function calls now compiles every argument and pushes them to the stack starting at the rightmost argument and finishing with the leftmost.
Added the missing Pop RBP instruction missing in the compilation of function declarations.
Modified type env so that it supports local vars and function arguments. Local vars are stored and accessed using the RSP register as reference (RSP - 8i). Function arguments are accessed using RBP register as reference (RBP + 8i).
Compiling function calls now compiles every argument and pushes them to the stack starting at the rightmost argument and finishing with the leftmost.
Added the missing Pop RBP instruction missing in the compilation of function declarations.