Giter Site home page Giter Site logo

processor-sim's Introduction

Processor-Sim

MIPS Processor

16 Bit Instruction Set

  1. Add ADD R1 R2 R3 => 0000 0001 0010 0011 => 0x0123 R1 = R2 + R3

  2. Sub SUB R4 R5 R6 => 0001 0100 0101 0110 => 0x1456 R4 = R5 – R6

  3. And AND R15 R10 R5 => 0010 1111 1010 0101 => 0x2FA5 R4 = R5 and R6

  4. Or OR R1 R5 R0 => 0011 0001 0101 0000 => 0x3150 R1 = R5 or R0

  5. Xor OR R1 R5 R0 => 0011 0001 0101 0000 => 0x3150 R1 = R5 or R0

  6. Sl SL R2 R1 => 0101 0010 0001 0000 => 0x5210 R2 = << R1

  7. Slt SL R2 R1 => 0101 0010 0001 0000 => 0x5210 R2 = << R1

  8. Cmp CMP R5 R1 => 0111 0000 0101 0001 => 0x7051 BranchBit = (R5 == R1)

  9. Sb SB R7 R15 => 1000 0000 0111 1111 => 0x807F RAM[R7] = R15

  10. Lb SB R7 R15 => 1000 0000 0111 1111 => 0x807F RAM[R7] = R15

  11. Li LI R3 15 => 1010 0011 00001111 => 0xA30F R3 = 15

  12. Lui LUI R3 15 => 1010 0011 00001111 => 0xA30F R3 = 3840 (0x0F00)

  13. Jmp JMP label° => JMP 31 => 1100 0000 00011111 => 0xC01F PC = 31

  14. Bra BRA label° => BRA 45 => 1101 0000 00101101 => 0xD02D If (BranchBit) { PC += 45 }

  15. Jr JR R7 => 1110 0000 0111 0000 => 0xE070 PC = R7

  16. SPC SPC R1 => 1111 0001 0000 0000 => 0xF100 R1 = PC

processor-sim's People

Contributors

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