Allocate Constant Storage Block. Freescale Semiconductor sc100
Advertisement
Advertisement
Freescale Semiconductor, Inc.
SC_Assem.book Page 104 Thursday, September 23, 2004 10:44 AM
Assembler Directives
Descriptions value
Optional value expression for the initial value of each array byte. Can have any memory space attribute. Omitting this value tells the assembler to use the value zero.
Remarks
If the location counter is not zero, this directive advances the location counter to a base address that is a multiple of 2
k
, where:
2 k
≥ length
The listing shows only one byte of object code, regardless of how large the length
expression is. However, the location counter advances by the number of bytes generated.
The assembler issues a warning if the length expression is not a power of two.
Related Directives
BADDR, BSC, DC
Example
BUFFER BSB BUFSIZ ; Initialize buffer to zeros
BSC Allocate Constant Storage Block
Allocates and initializes a block of bytes.
[label] BSC length[,value]
Parameters
label
Optional label that receives the value of the location counter at the start of directive processing.
length value
Block length, in bytes: an expression that evaluates to an absolute integer greater than zero. Must not contain any forward references. Can have any memory space attribute.
Optional value expression for the initial value of each block byte, in the range -
128..+255. Can have any memory space attribute. Omitting this value tells the assembler to use the value zero.
104 SC100 Assembler User Guide
For More Information: www.freescale.com
Download
Advertisement