GithubHelp home page GithubHelp logo

testcpu's Introduction

TestCpu

This is a pet project to implement a cpu emulator in rust.

Instructions

First Byte
Nop 0x00 -
Relative Jump 0x01 Adress32
Short Jump 0x02 Adress16
Long Jump 0x03 Adress32
Store 0x0A 2bit Wordsize, 1Bit special Reg, 5Bit Register Index; Adress32
Load 0x0B 2bit Wordsize, 1Bit special Reg, 5Bit Register Index; Adress32
Move 0x0C 1Byte lenght; Adress32 source; Adress32 destination
Copy 0x0D 2Bit unused, 1Bit special Reg, 5Bit Source Reg; 2Bit unused, 1Bit special Reg, 5Bit target Reg
Add 0x10 1Bit unused, 5Bit Target Reg, 5Bit A Reg, 5Bit B Reg
Sub 0x11 1Bit unused, 5Bit Target Reg, 5Bit A Reg, 5Bit B Reg
Mul 0x12 1Bit unused, 5Bit Target Reg, 5Bit A Reg, 5Bit B Reg
Div 0x13 1Bit unused, 5Bit Target Reg, 5Bit A Reg, 5Bit B Reg
Mod 0x14 1Bit unused, 5Bit Target Reg, 5Bit A Reg, 5Bit B Reg
Or 0x15 1Bit unused, 5Bit Target Reg, 5Bit A Reg, 5Bit B Reg
And 0x16 1Bit unused, 5Bit Target Reg, 5Bit A Reg, 5Bit B Reg
Xor 0x17 1Bit unused, 5Bit Target Reg, 5Bit A Reg, 5Bit B Reg

testcpu's People

Contributors

justmaximumpower avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.