Skip to content

DB

The DB directive stores one or more 8-bit values in memory.

Format:

LabelOpcodeOperand
Optional:DBexpression or a list of them
  • Each item occupies one byte, in the order written.
  • A character string stores one byte per character.
  • A label on a DB line names the first byte stored.
DB 1, 2, 3
MSG: DB 'READY'
MASK: DB 0F0H