Epson CMOS 32-Bit Single Chip Microcomputer S1C33L03 Instrukcja Użytkownika Strona 37

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 181
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 36
5 INSTRUCTION SET
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
29
Extending the displacement of PC relative branch instructions
The sign8 immediate in PC relative branch instructions is extended to a signed 22-bit or a signed 32-bit
immediate. The sign8 immediate in PC relative branch instructions is multiplied by 2 for conversion to a
relative value for the jump address, and the derived value is then added to PC to determine the jump address.
The ext instructions extend this relative jump address value.
Extending to a 22-bit immediate
To extend the sign8 immediate to a 22-bit immediate, enter one ext instruction directly before the target
instruction.
Example: ext imm13
jrgt
sign8
S S S
S
+
0
0
0
SSSSSSS
31 22 21 9 8
imm13
sign8
0
Immediate
31
Current address
0
pc
31
New address
0
1
pc
The most significant bit S in the immediate that has been extended by the ext instruction is the sign, with
which bits 3122 are extended to become signed 22-bit data. The most significant bit in
sign8 is handled as the
MSB data of 8-bit data, and not as the sign.
Extending to a 32-bit immediate
To extend the sign8 immediate to a 32-bit immediate, enter two ext instructions directly before the target
instruction.
Example: ext imm13 (1)
ext imm13 (2)
jrgt sign8
+
0
0
0
31 22 21 9 8
imm13 (2)
S
imm13
[12:3] (1)
sign8
0
Immediate
31
Current address
0
pc
31
New address
0
1
pc
The most significant bit S in the immediate that has been extended by ext instructions is the sign. Bits 20
in the first
ext instruction are unused.
Przeglądanie stron 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 180 181

Komentarze do niniejszej Instrukcji

Brak uwag