# Z80 Directives

[Z80 Documentation](https://asm-editor.specy.app/documentation/z80.md)

Web page: https://asm-editor.specy.app/documentation/z80/directive

Placing code in memory, defining data and constants, including files and expanding macros.

22 entries, each with its own page of markdown:

- [What directives are](https://asm-editor.specy.app/documentation/z80/directive/what-directives-are.md): Directives are not executed by the CPU: they tell the assembler where to put the code, what data to emit, which names stand for which values, and when to…
- [`.title`](https://asm-editor.specy.app/documentation/z80/directive/title.md): Set the title of the program, as a string.
- [`error`](https://asm-editor.specy.app/documentation/z80/directive/error.md): Force an error.
- [`defb`](https://asm-editor.specy.app/documentation/z80/directive/defb.md) `db, .db, .byte, defm, dm, .dm, .text, .ascii, .asciz`: Define a sequence of bytes, text, or strings.
- [`defw`](https://asm-editor.specy.app/documentation/z80/directive/defw.md) `dw, .dw, .word`: Define a sequence of 16-bit words.
- [`.long`](https://asm-editor.specy.app/documentation/z80/directive/long.md): Define a sequence of 32-bit longs.
- [`equ`](https://asm-editor.specy.app/documentation/z80/directive/equ.md) `.equ, defl, =`: Assign a value to a symbol.
- [`org`](https://asm-editor.specy.app/documentation/z80/directive/org.md) `.org, .loc`: Specify address of next instruction.
- [`align`](https://asm-editor.specy.app/documentation/z80/directive/align.md) `.align`: Add fill bytes until address is multiple of specified value.
- [`defs`](https://asm-editor.specy.app/documentation/z80/directive/defs.md) `ds, .ds, .block, .blkb, data, dc`: Fill memory with repeated bytes.
- [`macro`](https://asm-editor.specy.app/documentation/z80/directive/macro.md) `.macro`: Start a macro definition.
- [`endm`](https://asm-editor.specy.app/documentation/z80/directive/endm.md) `.endm`: End a macro definition.
- [`if`](https://asm-editor.specy.app/documentation/z80/directive/if.md) `cond`: If conditional.
- [`else`](https://asm-editor.specy.app/documentation/z80/directive/else.md): Else conditional.
- [`endif`](https://asm-editor.specy.app/documentation/z80/directive/endif.md) `endc`: End of if conditional.
- [`end`](https://asm-editor.specy.app/documentation/z80/directive/end.md): End of file, optionally followed by entry address or label.
- [`#target`](https://asm-editor.specy.app/documentation/z80/directive/target.md): Specify whether targeting bin or rom.
- [`#code`](https://asm-editor.specy.app/documentation/z80/directive/code.md): Start a new code segment.
- [`#include`](https://asm-editor.specy.app/documentation/z80/directive/include.md): Include an assembly file or library directory.
- [`#local`](https://asm-editor.specy.app/documentation/z80/directive/local.md): Start a local scope.
- [`#endlocal`](https://asm-editor.specy.app/documentation/z80/directive/endlocal.md): End a local scope.
- [`#insert`](https://asm-editor.specy.app/documentation/z80/directive/insert.md): Insert a binary file.
