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

zasm - Z80 Assembler – Version 4.4

Pseudo instructions

#assert

Assembler directives: #assert
Pseudo instructions: #assert
#assert <condition> .Assembler directives: #assert
Pseudo instructions: #assert
assert <condition>

Assembler directives: #assert
Pseudo instructions: #assert
Assert that the given condition is true.

This directive might be used to detect logical or overflow errors in your source. It is used by zasm itself to Assembler directives: #assert
Pseudo instructions: #assert
assert that loaded library files actually defined the Pseudo instructions: Label definition
Numeric expressions: Labels
8080 Assembler: Labels
label they promissed to define. It is also used in zasm's assembler test suite.

Example:
Assembler directives: #assert
Pseudo instructions: #assert
#assert ( $ & 7 ) == 0 ; Assembler directives: #assert
Pseudo instructions: #assert
assert that current code position   ; is a multiple of 8
.area GSINIT
.Assembler directives: #assert
Pseudo instructions: #assert
assert DATA_size > 1 ; else ldir will run amok   ld bc,DATA_size - 1 ld de,DATA + 1 ld hl,DATA ld (hl),0 ldir

Valid HTML   Valid CSS