A.4.1
Defining Variables without Initial Values
Allocate a memory area in a DATA section.
To define a DATA section, use the .SECTION directive. To allocate a memory area, use the .BLKB directive for specification in 1-byte units, the .BLKW directive for 2-byte units, the .BLKL directive for 4-byte units, and the .BLKD directive for 8-byte units.
[Example]
.SECTION area,DATA
work1: .BLKB 1; Allocates a RAM area in 1-byte units
work2: .BLKW 1; Allocates a RAM area in 2-byte units
work3: .BLKL 1; Allocates a RAM area in 4-byte units
work4: .BLKD 1; Allocates a RAM area in 8-byte units
|