dogamak / ttk91-rs

Crate for reading, writing, compiling and executing TTK91 code.
0 stars 0 forks source link

Implement stack and related instructions #12

Closed dogamak closed 4 years ago

dogamak commented 4 years ago

Implemented the instructions PUSH, POP, PUSHR, POPR, CALL and EXIT.

Added methods for getting the address range of the stack from the memory handler (Memory::stack_address_range) and for requesting more stack space (Memory::grow_stack).

Should write a test for the PUSHR and POPR instructions.

Addresses the issue #3.