8000 GitHub - google0101-ryan/VCPU: A virtual CPU written in C++.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

google0101-ryan/VCPU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VCPU

A virtual CPU written in C++.

OPCODES

01: load the next number in RAM into reg0
10: load the next number in RAM into reg1
11: Add reg0 and reg1; store result in reg2
100: Call interrupt located in next place in memory
101: Multiply reg0 and reg1; store result in reg2

Interrupts

10: Print reg2 into the console

Registers

reg0: General Purpose Register
reg1: General Purpose Regsiter
reg2: Arithmetic Result Storage

NOTES

  • The above opcodes are the only ones implemented.
  • No assembler; programs must be written in final binary format.

COMPILING

make
make run

About

A virtual CPU written in C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0