The DSEG statement selects an absolute segment within DATA
space.
If the optional address is included, the assembler starts
the absolute segment from that address. The valid address
range is 00h-0FFh (data memory resides from 00h-7Fh and SFRs reside
from 80h-0FFh).
If the optional address is omitted, the assembler starts
the absolute segment from address 0 (if no prior absolute DATA
segment was defined). If an absolute DATA segment was previously
defined, the assembler continues from the end of that segment.
Note
The start address must be an absolute expression.
The A251 Assembler converts DSEG statements
into the following:
?DT?modulename?n SEGMENT OFFS address
Where
modulename
is the name of the source file.
n
is a sequential number.
address
is the address specified in the DSEG statement.
Example
DSEG AT 0x40 ; absolute DATA segment at 40H
TMP_A: DS 2 ; absolute data word variable
; named TMP_A
TEM_B: DS 4 ; absolute data dword (32-bit)
; variable named TMP_B
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.