Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.34 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.34 KB

ptb view

vCPU

What is vCPU?

vCPU is library that can be used to emulate literally almost any CPU in the world in pure JavaScript. This library can run in either NodeJS or your browser.

How do I add an opcode to a virtual CPU?

Each opcodes are setup with opcode functions and opcode comeback functions. I'm not going to detail it here, but if you would like to get started with this library, please check out the documentation.

I want to build a virtual CPU with 2 or more cores. Is this possible?

Yes! Please keep in mind as of version 0.0.1, there is no standardized way of setting a CPU id. This must be done in the opcodes; and therefore, requires a different set of opcodes per CPU core. Each CPU model is different, so you won't find this in our devdocs.

What is the latest version of this library?

The latest version of this library is vCPU 0.0.1 Stable Release. A string will always be appended to the beginning of each file along with a copyright notice.

What is the license for this code?

This software library is licensed under the GNU GPL v3.0 license. You can learn more about the exact terms in our LICENSE file.