8608 - An 8-bit data, 16-bit address, CISC architecture.
For a list of instructions, see instructionList.txt.
How to use the assembler:
-
Install
bllua3
from https://notabug.org/redo/bllua3 -
Download this repo into
Add-Ons/8608
or anywhere within one of Blockland's main directories. -
In BL console, execute:
luaexec("Add-Ons/8608/assembler-8608.lua");
-
To assemble a program, place a 1x1f ghost brick on the top-left corner of the ROM, face forward, and in BL console do:
AssembleBuildFile("Add-Ons/8608/examples/program.asm", "RomX RomY RomZ");
where
RomX
is the width of the ROM,RomY
is the depth front to back, andRomZ
is the height in bits, i.e., "16 16 8".You can also run the assembler from the command line to get a memory dump and disassembly in stdout, if you have lua installed:
luajit "Add-Ons/8608/assembler-8608.lua" "Add-Ons/8608/examples/program.asm"
How to use the emulator:
- Install love2d from https://love2d.org
- Open a command prompt in the "emulator" folder and run:
love . C:/path/filename.asm
Memory Map
Description
Languages
Lua
65.6%
C
31.6%
Assembly
2.4%
Batchfile
0.4%