.BYTE/.DB

Inserts a byte of data into the program with value defined by the input.

Syntax

.db n        ;n is any 1-byte integer
.byte n

Uses

The easiest way to put data directly into your program. Note that since the z80 processor is little-endian, loading into a 16-bit register from 2 bytes inserted using .DB will cause the least-significant-byte and most-significant-byte to be swapped.

See Also

General Directives

.DW/.WORD,.BLOCK,.FILL

TASM-Specific

None

Brass-Specific

.ASC,.ASCIIMAP,.BINARYFILL/.EMPTYFILL,.BINARYRANGE,.DBRND/.DWRND,.DBSIN/.DBCOS/.DBTAN/.DWSIN/.DWCOS/.DWTAN,.FILLW,.INCBIN,.INCBMP,.INCLABELS

Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.