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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
9.8 Comment Adding Function
The Preprocessor instructions are all expanded to codes that can be assembled, and delivered in the output file.
Even after that, those instructions are rewritten with comments beginning with a semicolon (;), so that the
original instructions can be identified. However, note that replacements of Define names and expressions will not
subsist as comments.
The comment is added to the first line following the expansion. In case the original statement is accompanied by
a comment, that comment is also added.
A macro definition should have a semicolon (;) placed at top of the line.
Example:
9.9 Other Functions
9.9.1 ASCII to HEX Conversion
The pp33 has the function to convert an ASCII character enclosed with ' ' in source files into a hexadecimal
number. The corresponding parts of the output assembly source file is replaced with the hexadecimal ASCII
codes.
Sample conversions:
Note: Only one ASCII character can be converted.
9.9.2 Comment Line
The pp33 allows comment lines that begin with "//" or "/*" as well as one that begins with semicolon (;).
The first "/" character will be converted into ";".
Sample conversions:
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
Before expansion
#define
#macro
#endm
After expansion (no debugging information)
;#define
;#macro
;
;
;
;#endm
'\t' and '\n' can also be used as 0x9 and 0xA, respectively.
ld.w %r1, '1'
ld.w %r1, '1'+1
//comment ..........
/*comment ..........
R0
ADDM
ld.w
add
ld.w
ADDM
R0
ADDM
ld.w
add
ld.w
ld.w
add
ld.w
%r0
$1
R0, $1
R0, [%r4]
[%r5], R0
0x10
%r0
$1
R0, $1
R0, [%r4]
[%r5], R0
%r0, 0x10 ;
%r0, [%r4]
[%r5], %r0
; [%r5] = [%r4] + 0x10
ld.w %r1, 0x31
ld.w %r1, 0x32
;/comment ..........
;*comment ..........
EPSON
ADDM 0x10
... Numeric operators can be used.
; [%r5] = [%r4] + 0x10
CHAPTER 9: PREPROCESSOR
121

Related parts for s5u1c33000c