Home

Awesome

Ps 8-32m Fantasy Console

The Ps 8-32m is a fantasy console made for the FC Dev Jam. The console is only tested with Google Chrome.

The following is a list of features for the console:

Besides the fantasy console the following tools / dev features are provided:

Getting started

The Ps 8-32m starts in paused mode. Press the 'resume/pause' button in the menu to toggle if the console is running. Make sure the Compiler tool is selected. The compiler comes with a few example programs. Select a program from the examples dropdown. Press the 'Compile' button. The byte code should show up in the output window and an 'Execute' button should appear. Press the execute button and make sure you have pressed the 'resume/pause' button in the main menu so the computer is running. You should know see the program running.

Compiling and then executing a program through the compile tool is currently the only way to run a program in the Ps 8-32m.

Memory layout

The following list illustrates the Ps 8-32m memory layout:

Keycodes

This is a list of the currently defined keycodes:

Assembly reference

The processor has 21 registers. 16 of those are user assignable 8-bit registers known as R-registers. The R-registers can also store 16-, and 32-bit integers if they are combined. E.g. if $r0 is 0xAB and $r1 is 0xCD then if you read a 16-bit number from either $r0 or $r1 the value 0xCDAB is returned. Note that the processor uses little endianess.

Opcodes are 1 byte. Register addresses are also 1 byte. Some instructions can use multiple registers to create 16- or 32-bit numbers.

Bit Manipulation:

Arithmetic:

Store/Load/Move:

Control (every register is treated as an usigned number):

Jumping:

Skipping: