Write, check and assemble programs for the FLISP (FLexible Instruction Set Processor), as used in the "Grundläggande datorteknik" labs with DigiFlisp.
Quick start
Open a .sflisp file.
Press F7 (or the ▶ button in the editor title bar) to assemble it with qaflisp.
Errors appear in the code and in the Problems panel; the .fmem file is written next to the source.
Install DigiFlisp first, the extension finds its qaflisp automatically. Upload the generated .fmem files into the FLISP Computer to execute your program.
Features
Checks while you type — most mistakes are underlined before you assemble: wrong addressing modes, undefined labels, numbers like 0a, branches that are too far, values that do not fit in a byte. You also get a warning where qaflisp accepts the code without a message but probably does something else than you meant, e.g. ASLA Data or FCB 1,2 3,4.
Hover — over an instruction: what it does on this line, opcode, bytes, cycles and flags. Over a label or constant: its address or value in hex, decimal and binary.
Highlighting — instructions, directives, labels, numbers and comments as qaflisp reads them; # and directives in bold.
Labels — go to definition (F12), find all uses, outline, rename (F2).
Suggestions and columns — suggestions that fit the column; Tab jumps to the next column; Format Document aligns the code.
.fmem files — highlighting and a check for mistakes that DigiFlisp ignores silently.
More
User guide — every check with examples, all features, settings, where qaflisp is looked for.
Examples to try — small files, one topic each; every line says what the extension reports.
This extension is not affiliated with or endorsed by GMV (Göteborgs MikroVaror), the maker of DigiFlisp and qaflisp, nor by Chalmers or any other university or course. The bundled qaflisp.exe and the DigiFlisp icon belong to GMV and are used under the DigiFlisp software license — see THIRD-PARTY-NOTICES.md.