8-bit CPU with 16-bit addressing
|
1 year ago | |
---|---|---|
emulator | 1 year ago | |
examples | 1 year ago | |
.gitignore | 1 year ago | |
arch8608.ods | 2 years ago | |
assembler-8608.lua | 1 year ago | |
instructionList.txt | 1 year ago | |
memoryMap.md | 1 year ago | |
readme.md | 1 year ago | |
rom-8608-defs.lua | 1 year ago | |
rom-8608.lua | 2 years ago | |
utf8table.txt | 2 years ago |
For a list of instructions, see instructionList.txt.
bllua3
from https://notabug.org/redo/bllua3Add-Ons/8608
or anywhere within one of Blockland's main directories.
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, and RomZ
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"
love . C:/path/filename.asm