<--  back   Last regenerated: 2022-04-20 17:31:36 kio

zasm - Z80 Assembler – Version 4.4

Command Line Options

--reqcolon, .reqcolon

Related Differences from v3 to v4: Command line options
Command Line Options
Command Line Options: Command line options
command line option, Pseudo instructions
8080 Assembler: 8080 pseudo instructions
pseudo instruction and predefined label

Select syntax variant where colons ':' are required after Types of labels: Program labels
Types of labels: Program labels
program label definitions.

Normally colons are not required and the assembler decides whether a name is a label definition or something else by the position where it starts: Pseudo instructions: Label definition
Numeric expressions: Labels
8080 Assembler: Labels
label names must start in column 1 and instructions must be preceded by some space.

This #insert: Examples:
#assert: Example:
incbin: Examples:
#assert: Example:
example must not be compiled with --reqcolon or --Command Line Options: --dotnames, .dotnames
Commands for command line options: --dotnames, .dotnames
Label definition: --dotnames
dotnames:

.org 0                  ; due to the dot this Pseudo instructions
8080 Assembler: 8080 pseudo instructions
pseudo instruction is allowed in column 1 foo Pseudo instructions: equ
Types of labels: Named values
Labels: EQU
equ 0xF00 ; label definition bar: and a ; Types of labels: Program labels
Types of labels: Program labels
program label def and a instruction jp foo ; instruction shelf Pseudo instructions: defb, db, .db and .byte
8080 pseudo instructions: DB
db 0 ; Types of labels: Program labels
Types of labels: Program labels
program label def and a Pseudo instructions
8080 Assembler: 8080 pseudo instructions
pseudo instruction

But some source files don't obey this widely accepted rule and put instructions in column 1 or – actually seen – start label definitions indented with some tabs.

As long as only Pseudo instructions
8080 Assembler: 8080 pseudo instructions
pseudo instructions starting with a dot are put in column 1 and option --Command Line Options: --dotnames, .dotnames
Commands for command line options: --dotnames, .dotnames
Label definition: --dotnames
dotnames is not required, this is no problem. In all other cases you need this option --reqcolon and, of course, then colons are required after Types of labels: Program labels
Types of labels: Program labels
program label definitions, but still not after other label definitions with 'Pseudo instructions: equ
Types of labels: Named values
Labels: EQU
equ' and the like:

This #insert: Examples:
#assert: Example:
incbin: Examples:
#assert: Example:
example must be compiled with --reqcolon:

; funny indented:
org 0                       ; 'org' would be recognized as a Pseudo instructions: Label definition
Numeric expressions: Labels
8080 Assembler: Labels
label without --reqcolon foo Pseudo instructions: equ
Types of labels: Named values
Labels: EQU
equ 0xF00 ; label definition bar: and a ; Types of labels: Program labels
Types of labels: Program labels
program label def and a instruction jp foo ; instruction shelf: ; Types of labels: Program labels
Types of labels: Program labels
program label definition .Pseudo instructions: defb, db, .db and .byte
8080 pseudo instructions: DB
db 0 ; a Pseudo instructions
8080 Assembler: 8080 pseudo instructions
pseudo instruction

Prior to version 4.3.4 a Pseudo instructions: Label definition
Numeric expressions: Labels
8080 Assembler: Labels
label _reqcolon_ was also defined.

Valid HTML   Valid CSS