Download CubeSuite+ V2.00.00 Integrated Development Environment User`s

Transcript
CubeSuite+ V2.00.00
CHAPTER 4 ASSEMBLY LANGUAGE SPECIFICATIONS
- The .db directive cannot be described in a bit section.
- Two or more initial values may be specified within a statement line of the .db directive.
- As an initial value, an expression that includes a relocatable symbol or external reference symbol may be
described.
- If the relocation attribute of the section containing the .db directive is BSS or SBSS, then an error is output,
because initial values cannot be specified.
[Example]
.cseg
text
WORK1:
.db
(1)
; (1)
WORK2:
.db
(2)
; (1)
.cseg
text
MASSAG:
.db
"ABCDEF"
; (2)
DATA1:
.db
0xA, 0xB, 0xC
; (3)
DATA2:
.db
(3 + 1)
; (4)
DATA3:
.db
"AB" + 1
; (5)
<- Error
(1) Because the size is specified, the assembler will initialize each byte area with the value "0".
(2) A 6-byte area is initialized with character string 'ABCDEF'
(3) A 3-byte area is initialized with "0xA, 0xB, 0xC".
(4) A 4-byte area is initialized with "0x0".
(5) This description occurs in an error.
R20UT2659EJ0100 Rev.1.00
Jul 01, 2013
Page 243 of 911