Brass Core Plugins

data

Defines bytes (.db/.byte), 16-bit words (.dw/.word) or 32-bit integers (.di/.int).

You may also define string literals using these directives.

Syntax

.data type expression, [, expression [, ... ] ]
.db expression [, expression [, ... ] ]

Remarks

If you have a string, each character is treated as an individual expression, hence .dw "123" outputs six bytes of data for three characters.

Warning

The type of argument - string or number - is determined during the first pass. If the evaluation fails, the result is assumed to be a number. This can cause problems for forward-referenced strings.

Examples

.word 512, 4 ** 4, 1 << 10
.db "Brass", 0