s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 132

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
CHAPTER 9: PREPROCESSOR
9.5.4 Conditional Assembly Instructions
A conditional assembly instruction determines whether assembling should be performed within the specified
range, dependent on whether the specified name (Define name) is defined or not.
Instruction formats
Name definition
116
Format 1)
If the <Name> is defined, <Statement string 1> will be subjected to the assembling.
If the <Name> is not defined, and #else ... <Statement string 2> is described, then <Statement string 2> will
be subjected to the assembling. #else ... <Statement string 2> can be omitted.
Format 2)
If the <Name> is not defined, <Statement string 1> will be subjected to the assembling.
If the <Name> is defined, and #else ... <Statement string 2> is described, <Statement string 2> will be
subjected to the assembling. #else ... <Statement string 2> can be omitted.
<Name>:
<Statement string>:
Sample description:
Name definition needs to have been completed by either of the following methods, prior to the execution of
a conditional assembly instruction:
1) To define by using the startup option (-d) of the pp33.
2) To define in the source file by using the #define instruction.
The #define statement is valid even in a file to be included, provided that it goes before the conditional
assembly instruction that uses its Define name. A name defined after a conditional assembly instruction
will be regarded as undefined.
When a name is going to be used only in conditional assembly, no substitute character string needs to be
specified.
Example: pp33 -d TYPE1 sample.s
Example: #define
(#ifdef ... #else ... #endif, #ifndef... #else ... #endif)
Conforms to the restrictions on Define name. (See #define.)
All statements, excluding conditional assembly instructions, can be described.
#ifdef
#else
#endif
#ifdef
[#else
#endif
#ifndef <Name>
[#else
#endif
<Name>
<Statement string 1>
<Statement string 2>]
<Statement string 1>
<Statement string 2>]
TYPE1
ld.w
ld.w
TYPE1
%r1, 0x12
%r1, 0x13
EPSON
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
S5U1C33000C MANUAL

Related parts for s5u1c33000c