s5u1c17001c Epson Electronics America, Inc., s5u1c17001c Datasheet - Page 100

no-image

s5u1c17001c

Manufacturer Part Number
s5u1c17001c
Description
Cmos 16-bit Application Specific Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet
4 SOURCE FILES
(3) Symbols
4-10
In specifying an address with immediate data, you can use a symbol defined in the source files.
Definition of symbols
Restrictions on characters
Local and global symbols
Extended notation of symbols
Usable symbols are defined as 24-bit values by any of the following methods:
1. It is described as a label (in text, data or bss section)
2. It is defined with the .set directive
The characters that can be used are limited to the following:
A–Z a–z _ 0–9
Note that a symbol cannot begin with a numeral. Uppercase and lowercase characters are discriminated.
Defined symbols are normally local symbols that can only be referenced in the file where they are defined.
Therefore, you can define symbols with the same name in multiple files. To reference a symbol defined
in some other file, you must declare it to be global in the file where the symbol is defined by using the
.global directive.
When referencing an address with a symbol, you normally write the name of that symbol in the operand
where an address is specified.
Examples: call
The as assembler also accepts the referencing of an address with a specified displacement as shown below.
LABEL + imm24 LABEL + sign24
Example: xcall
Example: LABEL1:
LABEL1 is a symbol that indicates the address of a described location in the .text, .data, or .bss
section.
Example: .set
ADDR1 is a symbol that represents absolute address 0x00ff00.
ld.a
LABEL
%rd,LABEL ← LABEL = sign7
LABEL+0x10
ADDR1,0xff00
← LABEL = sign10
EPSON
(C COMPILER PACKAGE FOR S1C17 FAMILY) (Ver. 1.1)
S5U1C17001C MANUAL

Related parts for s5u1c17001c