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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 181
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 82
7 DETAILS OF INSTRUCTIONS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
75
cmp %rd, sign6
Function
Comparison
Standard) rd
- sign6
Extension 1) rd
- sign19
Extension 2) rd
- sign32
Code
15 12 11 10 9 4 3 0
0 1 1 0 1 0
sign6 r d
0x68__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
|
|
|
|
Mode
Src: Immediate data (signed)
Dst: Register direct
%rd = %r0 to %r15
CLK
One cycle
Description
(1) Standard
cmp
%rd,sign6 ; rd - sign6
Subtracts the signed 6-bit immediate sign6 from the contents of the rd register, and sets or resets
the flags (C, V, Z and N) according to the results. The
sign6 is sign-extended into 32 bits prior
to the operation. It does not change the contents of the rd register.
(2) Extension 1
ext
imm13 ; = sign19(18:6)
cmp
%rd,sign6 ; rd - sign19, sign6 = sign19(5:0)
Subtracts the signed 19-bit immediate
sign19 from the contents of the rd register, and sets or
resets the flags (C, V, Z and N) according to the results. The
sign19 is sign-extended into 32 bits
prior to the operation. It does not change the contents of the rd register.
(3) Extension 2
ext
imm13 ; = sign32(31:19)
ext
imm13 ; = sign32(18:6)
cmp
%rd,sign6 ; rd - sign32, sign6 = sign32(5:0)
Subtracts the signed 32-bit immediate sign32 extended with the ext instruction from the
contents of the rd register, and sets or resets the flags (C, V, Z and N) according to the results. It
does not change the contents of the rd register.
(4) Delayed instruction
This instruction may be executed as a delayed instruction by writing it directly after a branch
instruction with the d bit. In this case, extension of the immediate by the ext instruction
cannot be performed.
Example
(1) cmp %r0,0x3f ; Changes the flags according to the results of
; r0 - 0x3f.
(2)
ext 0x1fff
ext 0x1fff
cmp %r1,0x3f ; Changes the flags according to the results of
; r1 - 0xffffffff.
Vista de pagina 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 180 181

Comentarios a estos manuales

Sin comentarios