2024-02-16 16:59:56 -05:00
2024-02-14 13:36:13 -05:00
2024-02-14 13:35:52 -05:00
2022-10-26 18:27:00 -06:00
2024-02-14 13:35:52 -05:00
2024-02-16 16:59:56 -05:00
2022-11-01 10:08:45 -06:00

8608 - An 8-bit data, 16-bit address, CISC architecture.

For a list of instructions, see instructionList.txt.

How to use the assembler:

  1. Install bllua3 from https://notabug.org/redo/bllua3

  2. Download this repo into one of Blockland's main directories. (Add-Ons or base for example)

  3. In BL console, execute:

    luaexec("Add-Ons/_misc/8608/assembler-8608.lua");
    
  4. 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/_misc/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/_misc/8608/assembler-8608.lua" "Add-Ons/_misc/8608/program/asm.asm"
    

How to use the emulator:

  1. Install love2d from https://love2d.org
  2. Open a command prompt in the "emulator" folder and run:
    love . C:/path/filename.asm
    

Memory Map

memory map

Description
8-bit CISC architecture with 16-bit addressing
Readme 6.5 MiB
Languages
Lua 65.6%
C 31.6%
Assembly 2.4%
Batchfile 0.4%