update readme, add 16-bit arith and pointer increments

This commit is contained in:
Redo
2022-11-01 13:39:26 -06:00
parent 7ec5152d72
commit c1fd3d1d30
4 changed files with 76 additions and 25 deletions

View File

@@ -3,10 +3,12 @@
How to use the assembler:
1. Install bllua3 from https://notabug.org/redo/bllua3
2. Clone this repo into the Blockland folder
2. Download this repo somewhere into the Blockland folder
3. In BL console,
luaexec("your_path/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
AssembleFile("other_path/filename.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.
AssembleFile("other_path/filename.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 "your_path/assembler-8608.lua" "other_path/filename.asm"
For a list of instructions, see instructionList.txt