Benediction ASsembler (
BASM in short) is a modern Z80 assembler.
He has taken its inspiration from various Z80 assembler (Maxam/Winape, sjasmplus, rasm, vasm, BRASS, glass, zasm) as well as assemblers from other platforms (asm11, sarcasm).
It is tailored for Amstrad CPC demomaking and has been successfully used to develop the Amstrad CPC demo Can Robots Take Control?.
It has been still improved since and will serve for futur productions too.
The documentation is quite minimal at the moment, but included example code should be still valid and assembled propetly. The user base being quite small, lots of bugs can remain. Do note hesitate to fill issues https://github.com/cpcsdk/rust.cpclib/issues or propose fixes.
Features of Interest
- Possibility to assemble fake instructions (e.g.
ld hl, de).
- Possibility to use standard directives (e.g.
- Rare directives and functions (e.g.
ld a, opcode(xor a)).
- Macros definition and usage (e.g.
MY_MACRO_WITH_TWO_ARGS 1, "string").
- Function definition and usage (e.g.
db 5, my_function(3)).
- Expressions able to handle numbers, strings, lists, matrices.
- Handling of Amstrad CPC snapshots.
- Possibility to execute directly the assembled project in the Amstrad CPC thanks to the M4/CPC WIFI card.
- Multi-pass (in fact,
BASMuses as many passes as needed).
- Multiplatform (mainly tested on Linux and Windows).
- Embedding of various ASM source files inside
BASMthat can be used by the users.
- Possibility to write LOCOMOTIVE BASIC for easily writting Amstrad CPC bootstrap loaders.
An hello world representative of the functionalities of
BASM would be:
Download last version
Prefer to compile yourself
basm. But you can still download latest versions here:
Continuous delivery system for Linux is broken. The executables are outdated of few years...