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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
Notes:
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
Extended notation of symbols
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 Assembler also accepts the referencing of an address with a specified displacement as shown below.
LABEL + imm32 LABEL + sign32
Example:
Symbol mask
The basic instructions in the S1C33000 instruction set are characterized by the fact that the immediate size
that can be specified in the operand of each instruction is limited. Consequently, an assembler error results
when a symbol whose value exceeds the size is used. When using the basic instructions, the high-order bits
must be written separately in the ext instruction. A symbol mask is used for this purpose.
Specifically, a symbol mask is used to get the values from a symbol value that are written separately in the
ext instruction and the basic instruction, and is entered immediately after the symbol.
When using extended instructions, the Instruction Extender ext33 attaches the necessary symbol mask as it
expands the instruction. Therefore, you do not specifically need to be concerned about the ext instruction or
symbol mask.
Types of symbol masks
The following 8 types of symbol masks can be used:
Symbol mask
@rh or @RH
@rm or @RM
@rl or @RL
@h or @H
@m or @M
@l or @L
@ah or @AH
@al or @AL
Examples:
ext
ext
call
ext
ext
ld.w
ext
ext
ld.w
The symbol masks are effective only on the defined symbols. If a symbol mask is applied to a
numeric value, an error will result.
If a symbol mask is omitted, the lower bits effective for that instruction will be used. However,
if the bit value does not fall within the instruction range, an error or warning will be issued.
LABEL@rh
LABEL@rm
LABEL@rl
LABEL@h
LABEL@m
%rd, LABEL@l Functions as "ld.w %rd, LABEL".
LABEL@ah
LABEL@al
%rd, [%rb]
ld.w
call
Function
Acquires the 10 high-order bits of a relative address.
Acquires the 13 mid-order bits of a relative address.
Acquires the 8 low-order bits of a relative address.
Acquires the 13 high-order bits of an absolute address.
Acquires the 13 mid-order bits of an absolute address.
Acquires the 6 low-order bits of an absolute address.
Acquires the 13 high-order bits of a relative address.
Acquires the 13 low-order bits of a relative address.
LABEL
%rd, LABEL
LABEL+0x10
Functions as "call LABEL".
Functions as "ld.w %rd, [%rb+LABEL]".
...LABEL = sign8
...LABEL = sign6
EPSON
CHAPTER 4: SOURCE FILES
49

Related parts for s5u1c33000c