A downloadable game

Fetch instructions from RAM, decode them in the CIR and execute them using the ALU. Game ends when you output the wrong data or you get outrun by the clock (or you press esc).

Visual tutorial for the actions required of each instruction:

Gameplay:

Fetch: Click the MAR receipt to pass it to RAM. Copy the binary instruction revealed using the MDR. Rotate the output direction upwards and pass it to CIR.

Decode: Match the 3-bit binary operator to its plaintext equivalent below CIR. Translate the 9-bit binary operand into a decimal number.

Execute: Depending on the plaintext instruction, carry out the correct actions.

LDA - Click the memory location in RAM labelled with the address in MAR. Pass the 'food' from MDR to ACC.

SUM - Click ACC's + button to pass 'food' to ALU+. LDA 'food' from RAM (at the address in MAR) to ACC. Pass 'food' to ALU+ again. Click ALU+'s + button to process the two 'food' and the ^ button to pass it back to ACC.

SUB - Click ACC's - button to pass 'food' to ALU-. LDA 'food' from RAM (at the address in MAR) to ACC. Pass 'food' to ALU- again. Click ALU-'s - button to process the two 'food' and the ^ button to pass it back to ACC.

MLT - Click ACC's x button to pass 'food' to ALUx. LDA 'food' from RAM (at the address in MAR) to ACC. Pass 'food' to ALUx again. Set the right dial to ^, click the left dial to process the two 'food' and again to pass it back to ACC.

EXP - Click ACC's x button to pass 'food' to ALUx. LDA 'food' from RAM (at the address in MAR) to ACC. Pass 'food' to ALUx again. Set the right dial to x, click the left dial to process the two 'food' and again to pass it back to ACC.

DIV - Click ACC's % button to pass 'food' to ALU/. LDA 'food' from RAM (at the address in MAR) to ACC. Pass 'food' to ALU/ again. Click ALU/'s / button to process the two 'food' and the ^ button to pass it back to ACC.

MOD - Click ACC's % button to pass 'food' to ALU/. LDA 'food' from RAM (at the address in MAR) to ACC. Pass 'food' to ALU/ again. Click ALU/'s % button to process the two 'food' and the ^ button to pass it back to ACC.

STA - Pass 'food' from ACC to MDR. Pass it right to INSTRUCTIONS if address in MAR is 20 or greater. Pass it down to DATA if adress in MAR is 19 or less.

Download

Download
MegaBites.zip 27 MB

Install instructions

Unzip the files and run the executable in dist

Leave a comment

Log in with itch.io to leave a comment.