![Epson S1C17 Series Скачать руководство пользователя страница 60](http://html.mh-extra.com/html/epson/s1c17-series/s1c17-series_manual_107781060.webp)
S1C17 CORE MANUAL
Seiko Epson Corporation
7-1
(Rev. 1.2)
7 Details of Instructions
This section explains all the instructions in alphabetical order.
Symbols in the instruction reference
↔
Indicates that the bit is set (= 1) or reset (= 0) by instruction execution
1
Indicates that the bit is set (= 1) by instruction execution
0
Indicates that the bit is reset (= 0) by instruction execution
Registers/Register Data
%rd
,
rd
:
A general-purpose register (R0–R7) used as the destination register or its contents
%rs
,
rs
:
A general-purpose register (R0–R7) used as the source register or its contents
%rb
,
rb
:
A general-purpose register (R0–R7) that has stored a base address to be accessed in the
register indirect addressing mode or its contents
%sp
, sp:
Stack pointer (SP) or its contents
%pc
, pc:
Program counter (PC) or its contents
The register field (
rd
,
rs
) in the code contains a general-purpose register number.
R0 = 0b000, R1 = 0b001 . . . R7 = 0b111
Memory/Addresses/Memory Data
[%rb]
,
[%sp]
: Specification for register indirect addressing
[%rb]+
,
[%sp]+
: Specification for register indirect addressing with post-increment
[%rb]-
,
[%sp]-
: Specification for register indirect addressing with post-decrement
-[%rb]
,
-[%sp]
: Specification for register indirect addressing with pre-decrement
[%sp+immX]
:
Specification for register indirect addressing with a displacement
[imm7]
:
Specification for a memory address with an immediate data
B[XXX]
:
An address specified with
XXX
, or the byte data stored in the address
W[XXX]
:
A 16-bit address specified with
XXX
, or the word data stored in the address
A[XXX]
:
A 32-bit address specified with
XXX
, or the 24-bit or 32-bit data stored in the address
Immediate
immX
: A
X
-bit unsigned immediate data. The
X
contains a number representing the bit length of
the immediate.
signX
: A
X
-bit signed immediate data. The
X
contains a number representing the bit length of the
immediate. Furthermore, the most significant bit is handled as the sign bit.
Bit Field
(
X
): Bit
X
of data
(
X
:
Y
):
A bit field from bit
X
to bit
Y
{
X
,
Y
...}:
Indicates a bit (data) configuration.
Code
rd
,
rs
,
rb
:
Register number (R0 = 0 ... R7 = 7)
d:
Delayed bit (0: Standard branch instruction, 1: Delayed branch instruction)
Functions
←
:
Indicates that the right item is loaded or set to the left item.
+: Addition
-: Subtraction
&: AND
|: OR
^: XOR
!: NOT