Skip to content

DreamscapeVM/virtual-machine

 
 

Repository files navigation

DreamscapeVM

it is validate for a code to algorithm.

All Unit Test

how to build and run this program?

$ docker build -t vm .
$ docker run --rm -it vm /virtual-machine --help
# if you are user advanced?
$ docker run --rm -it -v $(pwd)/examples/binaries/code.vm:/code.vm vm /virtual-machine -p /code.vm

Reuslt from Terminal

Structure from Executable File

Assembly Instruction in this VM

ISA Ops Id Ops Name Parameters Ops Size
fundamental 0 exit X 1
fundamental 1 add uint32, uint32 3
fundamental 2 add int32, int32 3
fundamental 3 load_1byte reg_id, mem_address 10
fundamental 4 load_1byte reg_id, mem_address 10
fundamental 5 load_2byte reg_id, mem_address 10
fundamental 6 load_4byte reg_id, mem_address 10
fundamental 7 load_8byte reg_id, mem_address 10
fundamental 8 store_1byte reg_id, mem_address 10
fundamental 9 store_2byte reg_id, mem_address 10
fundamental 10 store_4byte reg_id, mem_address 10
fundamental 11 store_8byte reg_id, mem_address 10
fundamental 12 equal_condition_1byte reg1, reg2, true_pc, false_pc 19
fundamental 13 equal_condition_2byte reg1, reg2, true_pc, false_pc 19
fundamental 14 equal_condition_4byte reg1, reg2, true_pc, false_pc 19
fundamental 15 equal_condition_4byte reg1, reg2, true_pc, false_pc 19

Releases

No releases published

Packages

No packages published

Languages

  • C++ 78.3%
  • C 8.8%
  • CMake 5.9%
  • Dockerfile 3.4%
  • Makefile 2.5%
  • Batchfile 0.6%
  • Shell 0.5%