Fromgodd's Virtual Machine (stack)
![](https://private-user-images.githubusercontent.com/97128346/318253132-9b0d751b-fafc-4665-bf46-97829c5258bf.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MDMzNDgsIm5iZiI6MTcyMzcwMzA0OCwicGF0aCI6Ii85NzEyODM0Ni8zMTgyNTMxMzItOWIwZDc1MWItZmFmYy00NjY1LWJmNDYtOTc4MjljNTI1OGJmLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDA2MjQwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5NjMxZjAzNWFlMTNkZTMxZTgwYmMyNjBiMzk5NWRkZjM0MWM3MmFmYmVjNTAwNDJlNDY4MDAxMmM1NDlmYzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4YJXkx46avyWynSK78tOQIaNU1Ay5vaXGWoQTRoC3xA)
To use the FVM, simply run the following command:
fvm <filename>
Where <filename>
is the name of the file containing your FVM bytecode.
To compile the FVM, you can use Cargo. Run the following command:
cargo build --release
This code will just sum up 10 and 12 from stack and print result
PUSH 10
PUSH 12
ADD
PRINT