Next: Z80 Syntax, Up: Z80-Dependent [Contents][Index]
-march=CPU[-EXT][+EXT]This option specifies the target processor. The assembler will issue an error message if an attempt is made to assemble an instruction which will not execute on the target processor. The following processor names are recognized: z80, z180, ez80, gbz80, z80n, r800. In addition to the basic instruction set, the assembler can be told to accept some extension mnemonics. For example, -march=z180+sli+infc extends z180 with SLI instructions and IN F,(C). The following extensions are currently supported: full (all known instructions), adl (ADL CPU mode by default, eZ80 only), sli (instruction known as SLI, SLL or SL1), xyhl (instructions with halves of index registers: IXL, IXH, IYL, IYH), xdcb (instructions like RotOp (II+d),R and
BitOp n,(II+d),R), infc (instruction IN F,(C) or IN (C)), outc0 (instruction OUT (C),0). Note that rather than extending a basic instruction set, the extension mnemonics starting with - revoke the respective functionality: -march=z80-full+xyhl first removes all default extensions and adds support for index registers halves only.
If this option is not specified then -march=z80+xyhl+infc is assumed.
-local-prefix=prefixMark all labels with specified prefix as local. But such label can be marked global explicitly in the code. This option do not change default local label prefix .L, it is just adds new one.
-colonlessAccept colonless labels. All symbols at line begin are treated as labels.
-sdccAccept assembler code produced by SDCC.
-fp-s=FORMATSingle precision floating point numbers format. Default: ieee754 (32 bit).
-fp-d=FORMATDouble precision floating point numbers format. Default: ieee754 (64 bit).
Floating point numbers formats.
ieee754Single or double precision IEEE754 compatible format.
halfHalf precision IEEE754 compatible format (16 bits).
singleSingle precision IEEE754 compatible format (32 bits).
doubleDouble precision IEEE754 compatible format (64 bits).
zeda3232 bit floating point format from z80float library by Zeda.
math4848 bit floating point format from Math48 package by Anders Hejlsberg.
Next: Z80 Syntax, Up: Z80-Dependent [Contents][Index]