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

zasm - Z80 Assembler – Version 4.4

Pseudo instructions

rept, .rept, endm and .endm

    Pseudo instructions: rept, .rept, endm and .endm
8080 pseudo instructions: REPT
rept <value> <instr> ... Pseudo instructions: macro, .macro, endm and .endm
Pseudo instructions: rept, .rept, endm and .endm
endm

This Pseudo instructions
8080 Assembler: 8080 pseudo instructions
pseudo instructions defines a sequence of source which shall be stored into code multiple times. By use of a redefinable Pseudo instructions: Label definition
Numeric expressions: Labels
8080 Assembler: Labels
label the stored values may even be adjusted slightly. This is a lightweight form of an ad-hoc Pseudo instructions: macro, .macro, endm and .endm
8080 pseudo instructions: MACRO
macro.

The names with or without dot may be used interchangeable.

Assembler directives (starting with '#') are not allowed inside Pseudo instructions: macro, .macro, endm and .endm
8080 pseudo instructions: MACRO
macros.

Starting with version 4.1.4 the names "DUP" and "EDUP" are also accepted for "Pseudo instructions: rept, .rept, endm and .endm
8080 pseudo instructions: REPT
REPT" and "Pseudo instructions: macro, .macro, endm and .endm
Pseudo instructions: rept, .rept, endm and .endm
ENDM".

#insert: Examples:
#assert: Example:
incbin: Examples:
#assert: Example:
Example:

    Pseudo instructions: rept, .rept, endm and .endm
8080 pseudo instructions: REPT
rept $2000 - $ defb 0 Pseudo instructions: macro, .macro, endm and .endm
Pseudo instructions: rept, .rept, endm and .endm
endm

Which does the same thing as 'defs $2000-$' or even 'org $2000'. Just more complicated.

v   defl    0
    Pseudo instructions: rept, .rept, endm and .endm
8080 pseudo instructions: REPT
rept 8 lda regs2 + v/2 v defl v+2 cpi v jnz 0 Pseudo instructions: macro, .macro, endm and .endm
Pseudo instructions: rept, .rept, endm and .endm
endm

This seems to be 8080 assembler source. B-)

Valid HTML   Valid CSS