Skip to content

AmjadGhoufrane/SimpleVM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

A simple VM made in C.

Instruction set :

    PSH,  Pushes a value into the stack
    ADD,  Adds the latest two values in the stack and pushes the result
    POP,  Pops a value from the stack
    SET,  Sets a register's value
    DVD,  Divides the last two values in the stack and pushes the result
    MLT,  Multiplies the last two values in the stack and pushes the result
    SUB,  Substracts the last two values in the stack and pushes the result
    MOV,  Moves values between registers
    SET,  Sets a register's value
    MIR,  Moves the last value in the stack into the specified register
    MOR,  Moves the value in the specified register into the stack
    HLT,  Stops the program

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages