First page Back Continue Last page Overview Graphics

Assembler Directives Examples


The location counter is incremented by one with each (comma-separated) expression following the dc.b directive. The maximum value of an expression is 255 since the instruction allocates only a single byte for each expression.

When a series of characters is placed between quotes (either single or double) the characters inside the quotes are converted to ASCII. Each character is converted to one ASCII byte. One byte of memory is reserved for each ASCII character.

The following code will place a zero terminator after the ASCII string.

Msg: dc.b ‘FEED PART’,0