Brak opisu

Redo 0950a278a8 add cmp and zero flag, update doc 3 lat temu
programs 0950a278a8 add cmp and zero flag, update doc 3 lat temu
.gitignore befeb31a58 add flags and help to asm and emu 3 lat temu
arch.txt 0950a278a8 add cmp and zero flag, update doc 3 lat temu
asm.lua 0950a278a8 add cmp and zero flag, update doc 3 lat temu
core.c 0950a278a8 add cmp and zero flag, update doc 3 lat temu
doc.txt 0950a278a8 add cmp and zero flag, update doc 3 lat temu
license.txt 3e8e80d992 add readme, update license, fix macros 3 lat temu
readme.txt 0950a278a8 add cmp and zero flag, update doc 3 lat temu

readme.txt

8700: A CPU instruction set.

See doc.txt for details.

See the programs/ directory for some example programs.

Run asm.lua on a code file to assemble:
luajit asm.lua -i test.asm -o program.bin
Compile core.c and run core.exe on a bin file to load it into memory and emulate:
core program.bin
To view the output of the assembler in binary, use the -d flag (Can be used by itself or in conjunction with -o):
luajit asm.lua -i test.asm -d stdout -o program.bin