GithubHelp home page GithubHelp logo

marcorentap / mu-isa Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16 KB

Specifications for mu-ISA, a simple instruction set architecture originally made for mu-emu

License: GNU Affero General Public License v3.0

Assembly 100.00%

mu-isa's Introduction

** Note: this a very early development draft and is therefore unstable **

Registers

R0..R31 general purpose registers

COND register

RIP register

RSP register

RBP register

Bit fields

[0..31] IMM

[32..36] RS2

[37..41] RS1

[42..46] RD

[47..56] OPCODE

[57..60] OPCODE_GROUP

[61..63] FIELD

Set memory

SET RD IMM ; Set lower bit, erases higher bit

SETH RD IMM ; Set higher bit

Memory Accesses

LDx RD RS

SRx RD RS

LDx RD IMM

SRx RD IMM

where x is 1,2,4,8

Arithmetic

ADD RD RS1 RS2

SUB RD RS1 RS2

MUL RD RS1 RS2

DIV RD RS1 RS2

ADD RD RS1 IMM

SUB RD RS1 IMM

MUL RD RS1 IMM

DIV RD RS1 IMM

Conditionals set the COND register

GEQ RS1 RS2

GRE RS1 RS2

EQU RS1 RS2

LEQ RS1 RS2

LES RS1 RS2

Branching

J IMM

J RS1

Function calls

CALL RET

ABI

R0 the return value

R1..R32 for arguments

Addressing modes

Only absolute and indirect addressin is used

mu-isa's People

Contributors

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