Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 638 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 638 Bytes

monty

Bytecode intepretor for Monty language bytecode

Version Opcode Description
v 0.0.1 push pushes an element to the stack
v 0.0.2 pall prints all the values on the stack, starting from the top of the stack
v 0.1 pint prints the value at the top of the stack, followed by a new line
v 0.2 pop removes the top element of the stack
v 0.3 swap swaps the top two elements of the stack
v 0.4 add adds the top two elements of the stack
v 0.5 nop does nothing

Compilation

gcc -Wall -Wextra -Werror -pedantic -std=gnu89 *.c -o monty

Usage

./monty 00.m