Allocate Block Storage for Modulo. Freescale Semiconductor sc100
Reklama
Reklama
Freescale Semiconductor, Inc.
SC_Assem.book Page 105 Thursday, September 23, 2004 10:44 AM
Assembler Directives
Descriptions
Remarks
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.
Related Directives
BADDR, BSB, DC
Example
UNUSED BSC $2FFF-@LCV(R),$FFFFFFFF ; Fill unused
EPROM
BSM Allocate Block Storage for Modulo
For COFF mode only, allocates and initializes a block of words for a modulo buffer.
[label] BSM numwords[,value]
Parameters
label
Optional label that receives the value of the location counter after establishment of a valid base address.
numwords
Block length, in words: an expression that evaluates to an absolute integer greater than zero. Must not contain any forward references. Can have any memory space attribute.
value
Optional value expression for the initial value of each block word. Can have any memory space attribute. Omitting this value tells the assembler to use the value zero.
Remarks
This directive pertains to COFF mode only; ELF mode does not support this directive.
If the value of the runtime location counter is not zero, this directive advances the runtime location counter to a base address that is a multiple of 2 k
, where 2 k
equals or exceeds the numwords value. The assembler issues an error message if:
• numwords contains symbols not yet defined,
SC100 Assembler User Guide 105
For More Information: www.freescale.com
Stáhnout
Reklama