Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 Manual de usuario Pagina 30

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 181
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 29
5 INSTRUCTION SET
22
EPSON
S1C33 FAMILY C33 PE CORE MANUAL
5.5 Addressing Modes (without ext extension)
The instruction set of the C33 PE Core, as with the S1C33 series, has six discrete addressing modes, as described
below. The processor determines the addressing mode according to the operand in each instruction before it
accesses data.
(1) Immediate addressing
(2) Register direct addressing
(3) Register indirect addressing
(4) Register indirect addressing with postincrement
(5) Register indirect addressing with displacement
(6) Signed PC relative addressing
5.5.1 Immediate Addressing
The immediate included in the instruction code that is indicated as immX (unsigned immediate) or signX (signed
immediate) is used as the source data. The immediate size specifiable in each instruction is indicated by a numeral
in the symbol (e.g.,
imm4 = unsigned 4 bits; sign6 = signed 6 bits). For signed immediates such as sign6, the most
significant bit is the sign bit, which is extended to 32 bits when the instruction is executed.
Example: ld.w %r0,0x30
Before execution r0 = 0x
XXXXXXXX
After execution r0 = 0xFFFFFFF0
The immediate
sign6 can represent values in the range of +31 to -32 (0b011111 to 0b100000).
Except in the case of shift-related and bit-manipulating instructions, immediate data can be extended to a maximum
of 32 bits by a combined use of the operand value and the
ext instruction.
Example: ext imm13 (1)
ext imm13 (2)
ld.w %r0,sign6
r0 after execution
imm13 (1)r0
31 19 18
imm13 (2)
6
sign6
5 0
5.5.2 Register Direct Addressing
The content of a specified register is used directly as the source data. Furthermore, if this addressing mode is
specified as the destination for an instruction that loads the result in a register, the result is loaded in this specified
register. The instructions that have the following symbols as the operand are executed in this addressing mode.
%rs rs is a metasymbol indicating the general-purpose register that holds the source data to be operated on or
transferred. The register is actually written as
%r0, %r1, ... or %r15.
%rd rd is a metasymbol indicating the general-purpose register that is the destination for the result of operation.
The register is actually written as
%r0, %r1, ... or %r15. Depending on the instruction, it will also be used
as the source data.
%ss ss is a metasymbol indicating the special register that holds the source data to be transferred to a general-
purpose register.
%sd sd is a metasymbol indicating the special register to which data is to be loaded from a general-purpose
register.
Vista de pagina 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 180 181

Comentarios a estos manuales

Sin comentarios