Skip to content

moonpatroller/StackBasedVirtualMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StackBasedVirtualMachine

A little programming language on a stack-based virtual machine.

12/06/16: POS INC DEC
31/05/16: can generate standalone executable
20/05/16: START NOP PUSH POP ADD SUB MUL DIV CMP JMP JE JNE DUP SWAP PRINT READ END

# Instruction listings ``` - ADD: integer addition - DIV: integer division - MUL: integer multiplication - SUB: integer subtraction - INC: incrémentation - DEC: décrémentation - PUSH: push value on the stack - POP: pop value from stack - CMP: comparator - JE: jump if équal - JNE: jump if not équal - JMP: jump to instruction - PRINT: print - READ: read - POS: set cursor pos - DUP: duplicate the element at the top of the stack - SWAP: exchange elements at the top of the stack - END: exit the program - NOP: nop ```

About

A little programming language on a stack-based virtual machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published