https://github.com/hlorenzi/customasm
https://github.com/hlorenzi/customasm/wiki
customasm <INPUT-FILES...> [options] <OUTPUT-GROUPS...>
Specify multiple OUTPUT-GROUPS using the – separator.
Examples:
customasm main.asmcustomasm main.asm -f hexdump -o main.txtcustomasm main.asm -f binary -o main.bin -- -f symbols -o symbols.txtcustomasm main.asm --iters=3 -f annotated -p -- -f symbols -- -f binary-q, --quiet-v, --version-h, --help-t, --iters=NUM-dNAME, --define=NAME-dNAME=VALUE, --define=NAME=VALUE
Overwrites a constant definition with the given value,
or true if none is given.--color=on/off--debug-iters--debug-no-optimize-static--debug-no-optimize-matcher-f, --format=FORMAT-o, --output=FILENAME-p, --printUse the format names below with or without the extra parameters, separated by commas, with no whitespace in between.
If the argument is a string, you’ll need to
escape characters incompatible with your
command-line shell. For example, spaces can
be escaped as \x20. The use of surrounding
double-quotes is optional, for convenience.
Examples:
-f annotated-f annotated,group:4-f annotated,base:8,group:3-f list,before:"begin\x20data\n"-f list,before:begin\x20data\n,between:\nbinary
Code compatible with your target machine.
annotated,base:16,group:2,addr_base:16,labels:trueannotatedbin
Same as: annotated,base:2,group:8
binstrhexstr
Uninterrupted string of hexadecimal digits.
bindumphexdump
Memory-dump style encoded as hexadecimal digits.
mifintelhex,addr_unit:8
Intel HEX format. addr_unit can be 8, 16, or 32.
readmemb,width:8
Verilog $readmemb format. width controls the
number of bits emitted per line.readmemh,width:8
Verilog $readmemh format. width controls the
number of bits emitted per line.
list,base:16,group:2,between:"",group2:16,between2:"",before:"",after:""
Customizable list format. Digits of the selected base
will be grouped in amounts given by group,
separated by the string given by between.
Optionally, there will be another round of
grouping by group2 and between2. Output will be
prefixed and suffixed by the strings given by
before and after.
deccommahexcommadecspacehexspace
Bytes encoded as hexadecimal literals
separated by spaces.
decchexc
Bytes encoded as hexadecimal literals
wrapped in a C-style declaration.
logisim8logisim16
For use with the Logisim logic simulator program.
addrspan
tcgame,base:16,group:2# and prefixes
each group with 0x or 0b.tcgamebin
Same as: tcgame,base:2,group:8
symbolsmesen-mlb