Skip to content

Commit

Permalink
Start to write the documentation of BASM
Browse files Browse the repository at this point in the history
  • Loading branch information
rgiot committed Aug 20, 2023
1 parent c86f59f commit e6dd4a9
Show file tree
Hide file tree
Showing 10 changed files with 792 additions and 227 deletions.
222 changes: 0 additions & 222 deletions cpclib-asm/basm_doc.md

This file was deleted.

39 changes: 39 additions & 0 deletions cpclib-basm/docs/cmdline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Command line arguments

Here is the help provided by `basm`.

```
Profile debug compiled: Sun, 20 Aug 2023 20:55:05 +0000
Benediction ASM -- z80 assembler that mainly targets Amstrad CPC
Usage: basm.exe [OPTIONS] [INPUT]
Arguments:
[INPUT] Input file to read.
Options:
--inline <INLINE> Z80 code is provided inline
-o, --output <OUTPUT> Filename of the output.
--db Write a db list on screen (usefull to get the value of an opcode)
--lst <LISTING_OUTPUT> Filename of the listing output.
--sym <SYMBOLS_OUTPUT> Filename of the output symbols file.
--sym_kind <SYMBOLS_KIND> Format of the output symbols file [default: basm] [possible values: winape, basm]
--basic Request a Basic header (the very first instruction has to be the LOCOMOTIVE directive).
--binary Request a binary header
--snapshot Generate a snapshot
-i, --case-insensitive Configure the assembler to be case insensitive.
-d, --directives-prefixed-by-dot Expect directives to by prefixed with a dot
-I, --include <INCLUDE_DIRECTORIES> Provide additional directories used to search files
-D, --define <DEFINE_SYMBOL> Provide a symbol with its value (default set to 1)
--m4 <TO_M4> Provide the IP address of the M4
-l <LOAD_SYMBOLS> Load symbols from the given file
--Werror Warning are considered to be errors
--progress Show a progress bar.
--list-embedded List the embedded files
--view-embedded <VIEW_EMBEDDED> Display one specific embedded file [possible values: inner://crtc.asm, inner://deexo.asm, inner://dzx0_fast.asm, inner://dzx0_standard.asm, inner://firmware/amsdos.asm, inner://firmware/casmng.asm, inner://firmware/gfxvdu.asm, inner://firmware/highkern.asm, inner://firmware/indirect.asm, inner://firmware/kernel.asm, inner://firmware/keymng.asm, inner://firmware/lowkern.asm, inner://firmware/machine.asm, inner://firmware/math6128.asm, inner://firmware/mathnot464.asm, inner://firmware/mathnot6xx.asm, inner://firmware/not464.asm, inner://firmware/scrpack.asm, inner://firmware/sound.asm, inner://firmware/txtvdu.asm, inner://ga.asm, inner://lz48decrunch.asm, inner://lz49decrunch.asm, inner://lz4_docent.asm, inner://opcodes_first_byte.asm, inner://pixels-routs.asm, inner://unaplib.asm, inner://unaplib_fast.asm]
-h, --help Print help
-V, --version Print version
Still a Work In Progress assembler
```
Loading

0 comments on commit e6dd4a9

Please sign in to comment.