Allocate Bit-Reverse Buffer. Freescale Semiconductor sc100
Annonce
Annonce
Freescale Semiconductor, Inc.
SC_Assem.book Page 103 Thursday, September 23, 2004 10:44 AM
Assembler Directives
Descriptions length
Buffer length, in bytes: an expression that evaluates to an absolute integer greater than zero. Must not contain any forward references; should be a power of two.
Remarks
If the location counter value is not zero, this directive advances the location counter to a base address that is a multiple of 2
k
, where:
2 k
≥ length
There must be sufficient remaining memory to establish a valid base address, or the assembler issues an error message. Unlike other buffer allocation directives, the BADDR directive does not advance the location counter; the location counter continues to point to the buffer base address.
You may not use a label with this directive. The assembler issues a warning if the length
value is not a power of two.
Related Directives
BSB , BUFFER , DSR
Example
ORG P:$100
BADDR R,24 ; Reverse buffer 24
BSB Allocate Bit-Reverse Buffer
Allocates and initializes a block of bytes for a reverse-carry buffer.
[label] BSB length[,value]
Parameters
label
Optional label that receives the value of the location counter, once the assembler establishes a valid base address.
R
Specifier for the reverse carry buffer type.
length
Block length, in bytes: an expression that evaluates to an absolute integer greater than zero. Must not contain any forward references; should be a power of two. Can have any memory space attribute.
SC100 Assembler User Guide 103
For More Information: www.freescale.com
Download
Annonce