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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
4.3.4 Additional Preprocessor Functions
The Preprocessor pp33 offers additional functions for the creation of assembly source files. This section will deal
only with the notations for these functions. For details on each one of the functions, refer to Chapter 9,
"Preprocessor". The preprocessor processes the notations of the said functions into mnemonic statements that can
be assembled, thereby delivering assembly source files.
Note: The statements dealt with in this section need to be processed by the preprocessor, and cannot
Preprocessor pseudo-instructions
Operators
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
The following five types of pseudo-instructions are provided for the Preprocessor pp33.
#include
#define
#macro–#endm
#ifdef(ifndef)–#else–#endif
All of these pseudo-instructions begin with a sharp (#).
Examples: #include
For details on the notation of each pseudo-instruction and function, refer to Section 9.5 "Preprocessor
Pseudo-Instructions".
To specify a value in the source, an expression using the following operators can be used:
In the numeric parts of an expression, you can use a symbol whose value is defined by the preprocessor
pseudo-instruction #define.
+
-
*
/
%%
>>
<<
&
|
^
~
^H
^M
^L
^AH Acquires bit field (25:13)
^AL Acquires bit field (12:0)
(, )
be entered directly into the Assembler as33. (Direct entry into the assembler will result an error.)
Addition, Plus sign
Subtraction, Minus sign
Multiplication
Division
Residue
Shifting to right
Shifting to left
Logical product
Logical sum
Exclusive OR
Logical denial
Acquires bit field (31:19)
Acquires bit field (18:6)
Acquires bit field (5:0)
Parentheses
#define
#macro
#endm
#ifdef
#else
#endif
"define.h"
NULL
ADDM
xld.w
xld.w
add
xld.w
TYPE1
ld.w
ld.w
Insertion of file
Definition of character strings and numbers
Definition of macros
Conditional assembly
0
$1, $2
%r0, [$1]
%r1, [$2]
%r0, %r1
[$1], %r0
%r0, 0
%r0, -1
+0xff, 1+2
-1+2, 0xfff-0b111
0xf*5
0x123/0x56
0x123%%0x56
1>>2
0x113<<3
0b1101&0b111
0x123|0xff
12^35
~0x1234
0x1234^H
0x1234^M
0x1234^L
0x1234^AH
0x1234^L
1+(1+2*5)
Examples
EPSON
CHAPTER 4: SOURCE FILES
51

Related parts for s5u1c33000c