An assembler for the R8 fantasy retro CPU architecture.
Installation
Usage
Assembling R8 source files
Prepare your program in a text file, and run:
If the program assembles correctly, this will produce a my_prog.bin file you can run with the monitor.
Use the --list switch to also produce a listing to the console:
C000 RAM_TEST:
C000 19 FD FF ld cd, 0xFFFD ; top of possible RAM
C003 10 02 ld a, 0x02
The --stdoutformat switch will print a formatted version of the source code:
RAM_TEST:
ld cd, 0xFFFD ; top of possible RAM
ld a, 0x02
The --format switch will apply the same formatting to the source file in-place:
Disassembling R8 binary files
Use the --dis switch to disassemble a binary file:
This will print the disassembled listing.
See also
r8cpu: Core types and logic for the R8 architecture.rx82: A low-level emulator for an R8-based computer system.
Changelog
- 0.4.0 — listing and formatting