Code Monkey home page Code Monkey logo

16bitcpu's Introduction

16bitCPU

Commands Description
HLT HALT, stop program
NOP No Operation, just carry on
JMP JUMP, Go to set line
OUT OUTPUT, Out register to console
FLG FLAG, set ADD, SUB, MUL, DIV, MOD, COMP, AND Flags
GIN General Purpose In, set the General Register from other register
GOT General Purpose Out, set the register from General Register
BRZ BRANCH, if ACC is 0
BRN BRANCH, if ACC is negative
STA STORE, Stores RIR in RAM and RAR
LDA LOAD, Get the value at RAR from RAM and loads into RDR
Registers Description
MAR MEMORY ADDRESS REGISTER
MDR MEMORY DATA REGISTER
PC PROGRAM COUNTER
A REGISTER A
B REGISTER B
ACC ACCUMULATOR (Ccomputes A and B)
GEN GENERAL PURPOSE REGISTER
OUT OUTPUT REGISTER
RIR RAM INPUT REGISTER
ROR RAM OUTPUT REGISTER
RAR RAM ADDRESS REGISTER
GPX GPU X POSITION REGISTER
GPY GPU Y POSITION REGISTER
GPC GPU COLOUR REGISTER

16bitcpu's People

Contributors

gerald12344 avatar

Watchers

 avatar  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.