Skip to content

Instantly share code, notes, and snippets.

View asiekierka's full-sized avatar

Adrian Siekierka asiekierka

View GitHub Profile
AREIA-1
------------
16 registers, 16 bits each,
0 = always 0
15 = SP
Memory is treated as little-endian.
Opcode byte: oooooott (o - opcode, t - type of opcode)
l is .b or .w
AREIA-1
------------
16 registers, 16 bits each,
0 = always 0
15 = SP
Memory is treated as little-endian.
Opcode byte: oooooott (o - opcode, t - type of opcode)
l is .b or .w
@asiekierka
asiekierka / gist:6741832
Last active April 15, 2018 03:06
Modular Computing CPU tutorial

Welcome to Modular Computing! This document's goal is to explain how the Areia-1 CPU works and how to use it.

BASICS:

Let's start with the simplest opcode: move.

move.w dst, src

It lets you move the values inside registers, or to change such a value to a number. ".w" means it is related to WORDS - 16-bit values. This is not important to you for now.

@asiekierka
asiekierka / gist:6740872
Last active April 15, 2018 03:00
Modular Computing CPU design v1
AREIA-1
------------
16 registers, 16 bits each,
0 = always 0
15 = SP
Memory is treated as little-endian.
OP1 in {move, cmp, add, sub, xor, or, and}
@asiekierka
asiekierka / gist:6571908
Created September 15, 2013 15:46
Example AsieLauncher config.
{
"version": 2,
"serverList": [
{
"ip": "asiekierka.humee.pl",
"name": "Asiekierka's Experimental Server",
"description": "This one never really works.",
"owner": "asiekierka",
"website": "http://google.com"
}