BDASM Command Line Reference
Synopsis
Description
BDASM (Benediction Disassembler) is a Z80 disassembler that converts machine code back into human-readable assembly language.
Arguments
<INPUT>
Input binary file to disassemble (required).
Options
-o, --origin <ORIGIN>
Disassembling origin address (memory location where code will be loaded).
Example:
-d, --data <DATA_BLOC>
Relative position that contains data (not code) for a given size.
Format: RELATIVE_START(in hexadecimal)-SIZE(in decimal)
Description:
Tells the disassembler that a specific region contains data bytes, not instructions, so it won't try to disassemble them as code.
Example:
-l, --label <LABEL>
Set a label at the given address.
Format: LABEL=ADDRESS
Description:
Define symbolic names for specific addresses in the disassembly output.
Example:
You can specify multiple labels:
-s, --SKIP <SKIP>
Skip the first <SKIP> bytes of the input file.
Description:
Useful for skipping file headers or unwanted data at the beginning of the file.
Example:
-c, --compressed
Output a simple listing that only contains the opcodes (no addresses or hex dump).
Description:
Produces minimal output showing only the disassembled instructions, useful for cleaner code review or when you only need the assembly mnemonics.
Example:
Output:
Vs. normal output:
-h, --help
Print help information.
-V, --version
Print version information.
Environment Variables
None
Exit Status
0- Success1- Error during disassembly or file I/O
Examples
See Examples for detailed usage examples.