Renesas M32R-FPU Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach PC / Workstation Barebones Renesas M32R-FPU herunter. M32R-FPU Software Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 194
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
To our customers,
Old Company Name in Catalogs and Other Documents
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Renesas Electronics website: http://www.renesas.com
April 1
st
, 2010
Renesas Electronics Corporation
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry
.
Seitenansicht 0
1 2 3 4 5 6 ... 193 194

Inhaltsverzeichnis

Seite 1 - To our customers

To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology C

Seite 2

11-2M32R-FPU Software Manual (Rev.1.01)b0b0CPU PROGRAMMING MODEL1.1 CPU Register1.1 CPU RegisterThe M32R family CPU, with a built-in FPU (herein refer

Seite 3

33-62M32R-FPU Software Manual (Rev.1.01)LD24LD24load/store instructionLoad 24-bit immediate[Mnemonic]LD24 Rdest,#imm24[Function]Load the 24-bit immed

Seite 4

33-63 M32R-FPU Software Manual (Rev.1.01)LDBLDBload/store instructionLoad byte[Mnemonic](1) LDB Rdest,@Rsrc(2) LDB Rdest,@(disp16,Rsrc)[Function]L

Seite 5 - M32R-FPU Software Manual

33-64M32R-FPU Software Manual (Rev.1.01)LDHLDHload/store instructionLoad halfword[Mnemonic](1) LDH Rdest,@Rsrc(2) LDH Rdest,@(disp16,Rsrc)[Functio

Seite 6 - Table of contents

33-65 M32R-FPU Software Manual (Rev.1.01)LDILDItransfer instructionLoad immediate[Mnemonic](1) LDI Rdest,#imm8(2) LDI Rdest,#imm16[Function]Load t

Seite 7 - APPENDIX

33-66M32R-FPU Software Manual (Rev.1.01)LDUBLDUBload/store instructionLoad unsigned byte[Mnemonic](1) LDUB Rdest,@Rsrc(2) LDUB Rdest,@(disp16,Rsrc

Seite 8

33-67 M32R-FPU Software Manual (Rev.1.01)LDUHLDUHload/store instructionLoad unsigned halfword[Mnemonic](1) LDUH Rdest,@Rsrc(2) LDUH Rdest,@(disp16

Seite 9 - CPU PROGRAMMIING MODEL

33-68M32R-FPU Software Manual (Rev.1.01)LOCKLOCKload/store instructionLoad locked[Mnemonic]LOCK Rdest,@Rsrc[Function]Load lockedLOCK = 1, Rdest = *(

Seite 10 - 1.2 General-purpose Registers

33-69 M32R-FPU Software Manual (Rev.1.01)MACHIMACHIDSP function instructionMultiply-accumulate high-order halfwords[Mnemonic]MACHI Rsrc1,Rsrc2[Functi

Seite 11 - 1.3 Control Registers

33-70M32R-FPU Software Manual (Rev.1.01)MACLOMACLODSP function instructionMultiply-accumulate low-order halfwords[Mnemonic]MACLO Rsrc1,Rsrc2[Function

Seite 12 - CPU PROGRAMMING MODEL

33-71 M32R-FPU Software Manual (Rev.1.01)MACWHIMACWHIDSP function instructionMultiply-accumulateword and high-order halfword[Mnemonic]MACWHI Rsrc1,Rs

Seite 13

11-3 M32R-FPU Software Manual (Rev.1.01)CRnb31b0CPU PROGRAMMING MODEL1.3 Control Registers1.3 Control RegistersThere are 6 control registers which are

Seite 14

33-72M32R-FPU Software Manual (Rev.1.01)MACWLOMACWLODSP function instructionMultiply-accumulateword and low-order halfword[Mnemonic]MACWLO Rsrc1,Rsrc

Seite 15

33-73 M32R-FPU Software Manual (Rev.1.01)MULMULmultiply and divide instructionMultiply[Mnemonic]MUL Rdest,Rsrc[Function]Multiply{ signed64bit tmp;tm

Seite 16

33-74M32R-FPU Software Manual (Rev.1.01)MULHIMULHIDSP function instructionMultiply high-order halfwords[Mnemonic]MULHI Rsrc1,Rsrc2[Function]Multiplya

Seite 17

33-75 M32R-FPU Software Manual (Rev.1.01)MULLOMULLODSP function instructionMultiply low-order halfwords[Mnemonic]MULLO Rsrc1,Rsrc2[Function]Multiplya

Seite 18

33-76M32R-FPU Software Manual (Rev.1.01)MULWHIMULWHIDSP function instructionMultiplyword and high-order halfword[Mnemonic]MULWHI Rsrc1,Rsrc2[Functio

Seite 19 - 1.5 Program Counter

33-77 M32R-FPU Software Manual (Rev.1.01)MULWLOMULWLODSP fucntion instructionMultiplyword and low-order halfword[Mnemonic]MULWLO Rsrc1,Rsrc2[Function

Seite 20 - 1.6 Data Format

33-78M32R-FPU Software Manual (Rev.1.01)MVMVtransfer instructionMove register[Mnemonic]MV Rdest,Rsrc[Function]TransferRdest = Rsrc;[Description]MV mo

Seite 21

33-79 M32R-FPU Software Manual (Rev.1.01)MVFACHIMVFACHIDSP function instructionMove high-order wordfrom accumulator[Mnemonic]MVFACHI Rdest[Function]T

Seite 22

33-80M32R-FPU Software Manual (Rev.1.01)MVFACLOMVFACLODSP function instructionMove low-order wordfrom accumulator[Mnemonic]MVFACLO Rdest[Function]Tra

Seite 23 - 1.7 Addressing Mode

33-81 M32R-FPU Software Manual (Rev.1.01)MVFACMIMVFACMIDSP function instructionMove middle-order wordfrom accumulator[Mnemonic]MVFACMI Rdest[Functio

Seite 24

11-4M32R-FPU Software Manual (Rev.1.01)CPU PROGRAMMING MODEL1.3 Control RegistersThe Processor Status Word Register (PSW) indicates the M32R-FPU statu

Seite 25 - INSTRUCTION SET

33-82M32R-FPU Software Manual (Rev.1.01)MVFCMVFCtransfer instructionMove from control register[Mnemonic]MVFC Rdest,CRsrc[Function]Transfer from contr

Seite 26 - 2.1 Instruction set overview

33-83 M32R-FPU Software Manual (Rev.1.01)MVTACHIMVTACHIDSP function instructionMove high-order wordto accumulator[Mnemonic]MVTACHI Rsrc[Function]Tran

Seite 27

33-84M32R-FPU Software Manual (Rev.1.01)MVTACLOMVTACLODSP function instructionMove low-order wordto accumulator[Mnemonic]MVTACLO Rsrc[Function]Transf

Seite 28

33-85 M32R-FPU Software Manual (Rev.1.01)MVTCMVTCtransfer instructionMove to control register[Mnemonic]MVTC Rsrc,CRdest[Function]Transfer from regist

Seite 29

33-86M32R-FPU Software Manual (Rev.1.01)NEGNEGarithmetic operation instructionNegate[Mnemonic]NEG Rdest,Rsrc[Function]NegateRdest = 0 – Rsrc ;[Descri

Seite 30

33-87 M32R-FPU Software Manual (Rev.1.01)NOPNOPbranch instructionNo operation[Mnemonic]NOP[Function]No operation/* */[Description]NOP performs no op

Seite 31

33-88M32R-FPU Software Manual (Rev.1.01)NOTNOTlogic operation instructionLogical NOT[Mnemonic]NOT Rdest,Rsrc[Function]Logical NOTRdest = ~ Rsrc ;[Des

Seite 32

33-89 M32R-FPU Software Manual (Rev.1.01)ORORlogic operation instructionOR[Mnemonic]OR Rdest,Rsrc[Function]Logical ORRdest = Rdest | Rsrc ;[Descrip

Seite 33

33-90M32R-FPU Software Manual (Rev.1.01)OR3OR3logic operation instructionOR 3-operand[Mnemonic]OR3 Rdest,Rsrc,#imm16[Function]Logical ORRdest = Rsrc

Seite 34

33-91 M32R-FPU Software Manual (Rev.1.01)RACRACDSP function instructionRound accumulator[Mnemonic]RAC[Function]Saturation Process{ signed64bit tmp;tmp

Seite 35

11-5 M32R-FPU Software Manual (Rev.1.01)b0CPU PROGRAMMING MODEL1.3 Control Registers1.3.2 Condition Bit Register: CBR (CR1)The Condition Bit Register

Seite 36 - 2.2 Instruction format

33-92M32R-FPU Software Manual (Rev.1.01)[Supplement]This instruction is executed in two steps as shown below:<step 1><step 2>The value in

Seite 37

33-93 M32R-FPU Software Manual (Rev.1.01)RACHRACHDSP function instructionRound accumulator halfword[Mnemonic]RACH[Function]Saturation Process{ signed6

Seite 38

33-94M32R-FPU Software Manual (Rev.1.01)[Supplement]This instruction is executed in two steps, as shown below.<proccess 1><proccess 2>The

Seite 39 - CHAPTER 3

33-95 M32R-FPU Software Manual (Rev.1.01)REMREMmultiply and divide instructionRemainder[Mnemonic]REM Rdest,Rsrc[Function]Signed remainderRdest = ( s

Seite 40

33-96M32R-FPU Software Manual (Rev.1.01)REMUREMUmultiply and divide instructionRemainder unsigned[Mnemonic]REMU Rdest,Rsrc[Function]Unsigned remainde

Seite 41

33-97 M32R-FPU Software Manual (Rev.1.01)RTERTEEIT-related instructionReturn from EIT[Mnemonic]RTE[Function]Return from EITSM = BSM ;IE = BIE ;C = BC

Seite 42

33-98M32R-FPU Software Manual (Rev.1.01)SETHSETHTransfer instructionsSet high-order 16-bit[Mnemonic]SETH Rdest,#imm16[Function]Transfer instructionsR

Seite 43 - 3.2 Instruction description

33-99 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionSETPSWSETPSWBit Operation InstructionsSet PSW[M32R-FPU Extended Instru

Seite 44

33-100M32R-FPU Software Manual (Rev.1.01)SLLSLLshift instructionShift left logical[Mnemonic]SLL Rdest,Rsrc[Function]Logical left shiftRdest = Rdest

Seite 45 - Add 3-operand

33-101 M32R-FPU Software Manual (Rev.1.01)SLL3SLL3shift instructionShift left logical 3-operand[Mnemonic]SLL3 Rdest,Rsrc,#imm16[Function]Logical left

Seite 46 - Add immediate

11-6M32R-FPU Software Manual (Rev.1.01)CPU PROGRAMMING MODEL1.3 Control Registers<At reset release: H0000 0100>b Bit Name Function R W0 FS Refle

Seite 47 - Add with overflow checking

33-102M32R-FPU Software Manual (Rev.1.01)SLLISLLIshift instructionShift left logical immediate[Mnemonic]SLLI Rdest,#imm5[Function]Logical left shiftR

Seite 48

33-103 M32R-FPU Software Manual (Rev.1.01)SRASRAshift instructionShift right arithmetic[Mnemonic]SRA Rdest,Rsrc[Function]Arithmetic right shiftRdest

Seite 49 - Add with carry

33-104M32R-FPU Software Manual (Rev.1.01)SRA3SRA3shift instructionShift right arithmetic 3-operand[Mnemonic]SRA3 Rdest,Rsrc,#imm16[Function]Arithmeti

Seite 50

33-105 M32R-FPU Software Manual (Rev.1.01)SRAISRAIshift instructionShift right arithmetic immediate[Mnemonic]SRAI Rdest,#imm5[Function]Arithmetic rig

Seite 51 - AND 3-operand

33-106M32R-FPU Software Manual (Rev.1.01)SRLSRLshift instructionShift right logical[Mnemonic]SRL Rdest,Rsrc[Function]Logical right shiftRdest = ( uns

Seite 52 - M32R-FPU Extended Instruction

33-107 M32R-FPU Software Manual (Rev.1.01)SRL3SRL3shift instructionShift right logical 3-operand[Mnemonic]SRL3 Rdest,Rsrc,#imm16[Function]Logical rig

Seite 53 - BCLRBCLR

33-108M32R-FPU Software Manual (Rev.1.01)SRLISRLIshift instructionShift right logical immediate[Mnemonic]SRLI Rdest,#imm5[Function]Logical right shif

Seite 54 - Branch on equal to

33-109 M32R-FPU Software Manual (Rev.1.01)STSTload/store instructionStore[Mnemonic](1) ST Rsrc1,@Rsrc2(2) ST Rsrc1,@+Rsrc2(3) ST Rsrc1,@-Rsrc2(4

Seite 55 - BEQZBEQZ

33-110M32R-FPU Software Manual (Rev.1.01)[Encoding]src11010src100100111 src20100 src2disp16src100100110 src2src100100100 src2ST Rsrc1,@Rsrc2ST Rsrc1

Seite 56 - BGEZBGEZ

33-111 M32R-FPU Software Manual (Rev.1.01)STBSTBload/store instructionStore byte[Mnemonic](1) STB Rsrc1,@Rsrc2(2) STB Rsrc1,@(disp16,Rsrc2)[Functi

Seite 57 - BGTZBGTZ

11-7 M32R-FPU Software Manual (Rev.1.01)CPU PROGRAMMING MODEL1.3 Control Registers21 EV 0: Mask EIT processing to be executed when an R WInvalid Opera

Seite 58 - Branch and link

33-112M32R-FPU Software Manual (Rev.1.01)STHSTHload/store instructionStore halfword[M32R-FPU Extended Mnemonic][Mnemonic](1) STH Rsrc1,@Rsrc2(2) ST

Seite 59 - BLEZBLEZ

33-113 M32R-FPU Software Manual (Rev.1.01)SUBSUBarithmetic operation instructionSubtract[Mnemonic]SUB Rdest,Rsrc[Function]SubtractRdest = Rdest - Rsr

Seite 60 - BLTZBLTZ

33-114M32R-FPU Software Manual (Rev.1.01)SUBVSUBVarithmetic operation instructionSubtract with overflow checking[Mnemonic]SUBV Rdest,Rsrc[Function]Su

Seite 61 - Branch on not C-bit

33-115 M32R-FPU Software Manual (Rev.1.01)SUBXSUBXarithmetic operation instructionSubtract with borrow[Mnemonic]SUBX Rdest,Rsrc[Function]SubtractRdes

Seite 62 - Branch on not equal to

33-116M32R-FPU Software Manual (Rev.1.01)TRAPTRAPEIT-related instructionTrap[Mnemonic]TRAP #imm4[Function]Trap occurrenceBPC = PC + 4;BSM = SM;BIE =

Seite 63 - BNEZBNEZ

33-117 M32R-FPU Software Manual (Rev.1.01)UNLOCKUNLOCKload/store instructionStore unlocked[Mnemonic]UNLOCK Rsrc1,@Rsrc2[Function]Store unlockedif ( L

Seite 64

33-118M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionUTOFUTOFFloating Point InstructionsUnsigned integer to float[M32R-FPU

Seite 65 - BSETBSET

33-119 M32R-FPU Software Manual (Rev.1.01)XORXORlogic operation instructionExclusive OR[Mnemonic]XOR Rdest,Rsrc[Function]Exclusive ORRdest = ( unsign

Seite 66 - BTSTBTST

33-120M32R-FPU Software Manual (Rev.1.01)XOR3XOR3logic operation instructionExclusive OR 3-operand[Mnemonic]XOR3 Rdest,Rsrc,#imm16[Function]Exclusive

Seite 67 - CLRPSWCLRPSW

APPENDICESAPPENDIX 1 Hexadecimal Instraction CodeAPPENDIX 2 Instruction ListAPPENDIX 3 Pipeline ProcessingAPPENDIX 4 Instruction Execution TimeAPPENDI

Seite 68

11-8M32R-FPU Software Manual (Rev.1.01)CPU PROGRAMMING MODEL1.3 Control Registers1.3.6 Floating-point Exceptions (FPE)Floating-point Exception (FPE) o

Seite 69 - Compare immediate

APPENDICESAPPENDICES-2M32R-FPU Software Manual (Rev.1.01)Appendix1 Hexadecimal Instraction CodeThe bit pattern of each instruction and correspondence

Seite 70 - Compare unsigned

APPENDICESAPPENDICES-3 M32R-FPU Software Manual (Rev.1.01)1000 1001 1010 1011 11001101 1110111189 BCDEFAb8-b11b0-b3hexadecimalnumeral16-bit instructio

Seite 71 - Compare unsigned immediate

APPENDICESAPPENDICES-4M32R-FPU Software Manual (Rev.1.01)mnemonic function condition bit (C)ADD Rdest,Rsrc Rdest = Rdest + Rsrc –ADD3 Rdest,Rsrc,#imm1

Seite 72

APPENDICESAPPENDICES-5 M32R-FPU Software Manual (Rev.1.01)mnemonic function condition bit (C)FMADD Rdest,Rsrc1,Rsrc2 Rdest = Rdest + Rsrc1 * Rsrc2 –FM

Seite 73 - Divide unsigned

APPENDICESAPPENDICES-6M32R-FPU Software Manual (Rev.1.01)mnemonic function condition bit (C)NEG Rdest,Rsrc Rdest = 0 - Rsrc –NOP /*no-operation*/ –NOT

Seite 74 - FADDFADD

APPENDICESAPPENDICES-7 M32R-FPU Software Manual (Rev.1.01)where:typedef singed int s; /* 32 bit signed integer (word)*/typedef unsigned int u

Seite 75

APPENDICESAPPENDICES-8M32R-FPU Software Manual (Rev.1.01)Appendix 3 Pipeline ProcessingAppendix 3.1 Instructions and Pipeline ProcessingAppendix Fi

Seite 76 - FCMPFCMP

APPENDICESAPPENDICES-9 M32R-FPU Software Manual (Rev.1.01)The overview of each pipeline stage is shown below.● IF stage (instruction fetch stage)The i

Seite 77

APPENDICESAPPENDICES-10M32R-FPU Software Manual (Rev.1.01)Appendix Figure 3.2.1 Pipeline Flow with no Stall (1)Appendix 3.2 Pipeline Basic Operation

Seite 78 - FCMPEFCMPE

APPENDICESAPPENDICES-11 M32R-FPU Software Manual (Rev.1.01)Appendix Figure 3.2.2 Pipeline Flow with no Stall (2)<Case 4> Three FPU instruction

Seite 79

11-9 M32R-FPU Software Manual (Rev.1.01)CPU PROGRAMMING MODEL1.3 Control Registers(3) Inexact Exception (IXCT)The exception occurs when the operation

Seite 80 - FDIVFDIV

APPENDICESAPPENDICES-12M32R-FPU Software Manual (Rev.1.01)(2) Pipeline Flow with StallsA pipeline stage may stall due to execution of a process or bra

Seite 81

APPENDICESAPPENDICES-13 M32R-FPU Software Manual (Rev.1.01)Appendix Figure 3.2.4 Pipeline Flow with Stalls (2)<Case 3> A branch instruction is

Seite 82 - FMADDFMADD

APPENDICESAPPENDICES-14M32R-FPU Software Manual (Rev.1.01)Appendix Figure 3.2.5 Pipeline Flow with Stalls (3)<Case 6> FPSR is accessed by an MV

Seite 83

APPENDICESAPPENDICES-15 M32R-FPU Software Manual (Rev.1.01)Appendix Figure 3.2.6 Pipeline Flow with Stalls (4)<Case 8> The FPU and integer ins

Seite 84

APPENDICESAPPENDICES-16M32R-FPU Software Manual (Rev.1.01)Appendix Figure 3.2.7 Pipeline Flow with Stalls (5)<Case 12> The FPU and FMADD/FMSUB

Seite 85 - FMSUBFMSUB

APPENDICESAPPENDICES-17 M32R-FPU Software Manual (Rev.1.01)Appendix 4 Instruction Execution TimeNormally, the E stage is considered as representing a

Seite 86

APPENDICESAPPENDICES-18M32R-FPU Software Manual (Rev.1.01)Appendix 5 IEEE754 Specification OverviewThe following is a basic overview of the IEEE754 sp

Seite 87

APPENDICESAPPENDICES-19 M32R-FPU Software Manual (Rev.1.01)APPENDIX 5Appendix 5 IEEE754 Specification OverviewAppendix Table 5.1.1 Single Precision F

Seite 88 - FMULFMUL

APPENDICESAPPENDICES-20M32R-FPU Software Manual (Rev.1.01)APPENDIX 5Appendix 5 IEEE754 Specification OverviewAppendix 5.2 RoundingThe following 4 roun

Seite 89

APPENDICESAPPENDICES-21 M32R-FPU Software Manual (Rev.1.01)(2) Underflow Exception (UDF)The exception occurs when the absolute value of the operation

Seite 90 - FSUBFSUB

11-10M32R-FPU Software Manual (Rev.1.01)CPU PROGRAMMING MODEL1.3 Control Registers(5) Invalid Operation Exception (IVLD)The exception occurs when an i

Seite 91

APPENDICESAPPENDICES-22M32R-FPU Software Manual (Rev.1.01)APPENDIX 5Appendix 5 IEEE754 Specification Overview(5) Invalid Operation Exception (IVLD)The

Seite 92 - FTOIFTOI

APPENDICESAPPENDICES-23 M32R-FPU Software Manual (Rev.1.01)Appendix 6 M32R-FPU Specification Supplemental ExplanationAppendix 6.1 Operation Comparisio

Seite 93

APPENDICESAPPENDICES-24M32R-FPU Software Manual (Rev.1.01)(1) Overflow occurs in Step 1<When EO = 0, EX = 0: OVF and IXCT occur>Type of R0 Condi

Seite 94 - FTOSFTOS

APPENDICESAPPENDICES-25 M32R-FPU Software Manual (Rev.1.01)(2) When underflow occurs in Step 1<When EU = 0, DN = 1: UDF occurs>Type of R0 Condit

Seite 95

APPENDICESAPPENDICES-26M32R-FPU Software Manual (Rev.1.01)APPENDIX 6Appendix 6 M32R-FPU Specification Supplemental Explanation(3) When Invalid Operati

Seite 96 - ITOFITOF

APPENDICESAPPENDICES-27 M32R-FPU Software Manual (Rev.1.01)(4) When Inexact Operation Exception occurs in Step 1 If an Inexact Operation occurs due t

Seite 97 - Jump and link

APPENDICESAPPENDICES-28M32R-FPU Software Manual (Rev.1.01)APPENDIX 6Appendix 6 M32R-FPU Specification Supplemental ExplanationAppendix 6.2 Rules conce

Seite 98

APPENDICESAPPENDICES-29 M32R-FPU Software Manual (Rev.1.01)Appendix 7 PrecautionsAppendix 7.1 Precautions to be taken when aligning dataWhen aligning

Seite 99

APPENDICESAPPENDICES-30M32R-FPU Software Manual (Rev.1.01)This page left blank intentionally.APPENDIX 7Appendix 7 Precautions

Seite 101 - INSTRUCTIONS

11-11 M32R-FPU Software Manual (Rev.1.01)CPU PROGRAMMING MODEL1.4 Accumulator1.4 AccumulatorThe Accumulator (ACC) is a 56-bit register used for DSP fu

Seite 102 - Load halfword

INDEXINDEX-2M32R-FPU Software Manual (Rev.1.01)Symbol#imm 1-15, 3-2@(disp,R) 1-15, 3-2@+R 1-15, 3-2@-R 1-15, 3-2@R 1-15, 3-2@R+ 1-15, 3-2AAccumulator(

Seite 103 - Load immediate

INDEXINDEX-3 M32R-FPU Software Manual (Rev.1.01)LLoad/store instructions 2-2LD 3-61LDB 3-63LDH 3-64LDUB 3-66LDUH 3-67LOCK 3-68ST 3-109STB 3-111STH 3-1

Seite 104 - LDUBLDUB

INDEXINDEX-4M32R-FPU Software Manual (Rev.1.01)RR 1-15, 3-2Register direct(R or CR) 1-15, 3-2Register indirect(@R) 1-15, 3-2Register indirect and regi

Seite 105 - LDUHLDUH

RENESAS 32-BIT RISC SINGLE-CHIP MICROCOMPUTERSOFTWARE MANUALM32R-FPUPublication Data : Rev.1.00 Jan 08, 2003Rev.1.01 Oct 31, 2003Published by : Sale

Seite 106 - LOCKLOCK

1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 JapanM32R-FPUREJ09B0112-0101ZSoftware Manual

Seite 107 - MACHIMACHI

Notice 1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to chang

Seite 108 - MACLOMACLO

11-12M32R-FPU Software Manual (Rev.1.01)1.6 Data Format1.6.1 Data TypeThe data types that can be handled by the M32R-FPU instruction set are signed or

Seite 109 - MACWHIMACWHI

11-13 M32R-FPU Software Manual (Rev.1.01)1.6.2 Data Format(1) Data format in a registerThe data sizes in the M32R-FPU registers are always words (32 b

Seite 110 - MACWLOMACWLO

11-14M32R-FPU Software Manual (Rev.1.01)(2) Data format in memoryThe data sizes in memory can be byte (8 bits), halfword (16 bits) or word (32 bits).A

Seite 111 - Multiply

11-15 M32R-FPU Software Manual (Rev.1.01)1.7 Addressing ModeM32R-FPU supports the following addressing modes.(1) Register direct [R or CR]The general-

Seite 112 - MULHIMULHI

11-16M32R-FPU Software Manual (Rev.1.01)CPU PROGRAMMING MODEL1.7 Addressing ModeThis page left blank intentionally.

Seite 113 - MULLOMULLO

CHAPTER 2INSTRUCTION SET2.1 Instruction set overview2.2 Instruction format

Seite 114 - MULWHIMULWHI

22-2M32R-FPU Software Manual (Rev.1.01)2.1 Instruction set overviewThe M32R-FPU has a total of 100 instructions. The M32R-FPU has a RISC architecture.

Seite 115 - MULWLOMULWLO

22-3 M32R-FPU Software Manual (Rev.1.01)INSTRUCTION SET2.1 Instruction set overviewThree types of addressing modes can be specified for load/store ins

Seite 116 - Move register

22-4M32R-FPU Software Manual (Rev.1.01)2.1.2 Transfer instructionsThe transfer instructions carry out data transfers between registers or a register a

Seite 117 - MVFACHIMVFACHI

22-5 M32R-FPU Software Manual (Rev.1.01)• logic operation instructionsAND ANDAND3 AND 3-operandNOT Logical NOTOR OROR3 OR 3-operandXOR Exclusive ORXOR

Seite 118 - MVFACLOMVFACLO

M32R-FPUSoftware Manual32Rev.1.01 2003.10RENESAS 32-BIT RISC SINGLE-CHIP MICROCOMPUTERAll information contained in these materials, including produc

Seite 119 - MVFACMIMVFACMI

22-6M32R-FPU Software Manual (Rev.1.01)2.1.4 Branch instructionsThe branch instructions are used to change the program flow.BC Branch on C-bitBEQ Bran

Seite 120 - MVFCMVFC

22-7 M32R-FPU Software Manual (Rev.1.01)The addressing mode of the BRA, BL, BC and BNC instructions can specify an 8-bit or24-bit immediate value. The

Seite 121 - MVTACHIMVTACHI

22-8M32R-FPU Software Manual (Rev.1.01)2.1.5 EIT-related instructionsThe EIT-related instructions carry out the EIT events (Exception, Interrupt and T

Seite 122 - MVTACLOMVTACLO

22-9 M32R-FPU Software Manual (Rev.1.01)Fig. 2.1.2 DSP function instruction operation 1 (multiply, multiply and accumulate)Rsrc10151631HACC063L0151631

Seite 123 - MVTCMVTC

22-10M32R-FPU Software Manual (Rev.1.01)ACC063sign 0RAC instructionACC063sign 0RACH instruction< word size round off > < halfword size round

Seite 124

22-11 M32R-FPU Software Manual (Rev.1.01)INSTRUCTION SET2.1 Instruction set overview2.1.7 Floating-point InstructionsThe following instructions execut

Seite 125 - No operation

22-12M32R-FPU Software Manual (Rev.1.01)2.2 Instruction formatThere are two major instruction formats: two 16-bit instructions packed together within

Seite 126 - Logical NOT

22-13 M32R-FPU Software Manual (Rev.1.01)The MSB (Most Significant Bit) of a 32-bit instruction is always "1". The MSB of a 16-bitinstructio

Seite 127

22-14M32R-FPU Software Manual (Rev.1.01)This page left blank intentionally.INSTRUCTION SET2.2 Instruction format

Seite 128 - OR 3-operand

CHAPTER 3INSTRUCTIONS3.1 Conventions for instructiondescription3.2 Instruction description

Seite 129 - Round accumulator

Keep safety first in your circuit designs!Notes regarding these materials•Renesas Technology Corporation puts the maximum effort into making semicondu

Seite 130

33-2M32R-FPU Software Manual (Rev.1.01)3.1 Conventions for instruction descriptionConventions for instruction description are summarized below.[Mnemon

Seite 131 - RACHRACH

33-3 M32R-FPU Software Manual (Rev.1.01)Table 3.1.3 Operation expression (operator) (cont.)operator meaning- sign invert (monomial operator)= substitu

Seite 132

33-4M32R-FPU Software Manual (Rev.1.01)[Description]Describes the operation performed by the instruction and any condition bit change.[EIT occurrence]

Seite 133 - Remainder

33-5 M32R-FPU Software Manual (Rev.1.01)3.2 Instruction descriptionThis section lists M32R-FPU instructions in alphabetical order. Each page is laid o

Seite 134 - REMUREMU

33-6M32R-FPU Software Manual (Rev.1.01)ADDdest0000 ADD Rdest,RsrcADD1010arithmetic/logic operationAddsrc[Mnemonic]ADD Rdest,Rsrc[Function]AddRdest =

Seite 135 - Return from EIT

33-7 M32R-FPU Software Manual (Rev.1.01)ADD3[Mnemonic]ADD3 Rdest,Rsrc,#imm16[Function]AddRdest = Rsrc + ( signed short ) imm16;[Description]ADD3 adds

Seite 136 - SETHSETH

33-8M32R-FPU Software Manual (Rev.1.01)ADDI[Mnemonic]ADDI Rdest,#imm8[Function]Add Rdest = Rdest + ( signed char ) imm8;[Description]ADDI adds the 8-

Seite 137 - SETPSWSETPSW

33-9 M32R-FPU Software Manual (Rev.1.01)ADDV[Mnemonic]ADDV Rdest,Rsrc[Function]AddRdest = ( signed ) Rdest + ( signed ) Rsrc;C = overflow ? 1 : 0;

Seite 138 - Shift left logical

33-10M32R-FPU Software Manual (Rev.1.01)ADDV3[Mnemonic]ADDV3 Rdest,Rsrc,#imm16[Function]AddRdest = ( signed ) Rsrc + ( signed ) ( ( signed short ) im

Seite 139 - SLL3SLL3

33-11 M32R-FPU Software Manual (Rev.1.01)ADDX[Mnemonic]ADDX Rdest,Rsrc[Function]AddRdest = ( unsigned ) Rdest + ( unsigned ) Rsrc + C;C = carry_out

Seite 140 - SLLISLLI

REVISION HISTORYRev. Date DescriptionPage SummaryM32R-FPU Software Manual1.00 Jan 08, 2003 First edition issued –1.01 Oct 31, 2003 Hexadecimal Ins

Seite 141 - Shift right arithmetic

33-12M32R-FPU Software Manual (Rev.1.01)ANDAND11000000 AND Rdest,Rsrclogic operation instructionANDsrcdest[Mnemonic]AND Rdest,Rsrc[Function]Logical A

Seite 142 - SRA3SRA3

33-13 M32R-FPU Software Manual (Rev.1.01)AND3[Mnemonic]AND3 Rdest,Rsrc,#imm16[Function]Logical ANDRdest = Rsrc & ( unsigned short ) imm16;[Descri

Seite 143 - SRAISRAI

33-14M32R-FPU Software Manual (Rev.1.01)BCBC[Mnemonic](1) BC pcdisp8(2) BC pcdisp24[Function]Branch(1) if ( C==1 ) PC = ( PC & 0xfffffffc )

Seite 144 - Shift right logical

33-15 M32R-FPU Software Manual (Rev.1.01)bit operationBit clear[M32R-FPU Extended Instruction]INSTRUCTIONS3.2 Instruction descriptionBCLRBCLR[Mnemonic

Seite 145 - SRL3SRL3

33-16M32R-FPU Software Manual (Rev.1.01)BEQBEQbranch instructionBranch on equal to[Mnemonic]BEQ Rsrc1,Rsrc2,pcdisp16[Function]Branchif ( Rsrc1 == Rsr

Seite 146 - SRLISRLI

33-17 M32R-FPU Software Manual (Rev.1.01)BEQZBEQZbranch instructionBranch on equal to zero[Mnemonic]BEQZ Rsrc,pcdisp16[Function]Branchif ( Rsrc == 0

Seite 147

33-18M32R-FPU Software Manual (Rev.1.01)BGEZBGEZbranch instructionBranch on greater than or equal to zero[Mnemonic]BGEZ Rsrc,pcdisp16[Function]Branch

Seite 148

33-19 M32R-FPU Software Manual (Rev.1.01)BGTZBGTZbranch instructionBranch on greater than zero[Mnemonic]BGTZ Rsrc,pcdisp16[Function]Branchif ((signed

Seite 149 - Store byte

33-20M32R-FPU Software Manual (Rev.1.01)BLBLbranch instructionBranch and link[Mnemonic](1) BL pcdisp8(2) BL pcdisp24[Function]Subroutine call (PC

Seite 150 - [M32R-FPU Extended Mnemonic]

33-21 M32R-FPU Software Manual (Rev.1.01)BLEZBLEZbranch instructionBranch on less than or equal to zero[Mnemonic]BLEZ Rsrc,pcdisp16[Function]Branchif

Seite 151 - Subtract

M32R-FPU Software Manual (Rev.1.01)(1)Table of contentsCHAPTER 1 CPU PROGRAMMING MODEL1.1 CPU register ...

Seite 152 - SUBVSUBV

33-22M32R-FPU Software Manual (Rev.1.01)BLTZBLTZbranch instructionBranch on less than zero[Mnemonic]BLTZ Rsrc,pcdisp16[Function]Branchif ((signed) Rs

Seite 153 - SUBXSUBX

33-23 M32R-FPU Software Manual (Rev.1.01)BNCBNCbranch instructionBranch on not C-bit[Mnemonic](1) BNC pcdisp8(2) BNC pcdisp24[Function]Branch(1)

Seite 154 - TRAPTRAP

33-24M32R-FPU Software Manual (Rev.1.01)BNEBNEbranch instructionBranch on not equal to[Mnemonic]BNE Rsrc1,Rsrc2,pcdisp16[Function]Branchif ( Rsrc1 !=

Seite 155 - UNLOCKUNLOCK

33-25 M32R-FPU Software Manual (Rev.1.01)BNEZBNEZbranch instructionBranch on not equal to zero[Mnemonic]BNEZ Rsrc,pcdisp16[Function]Branchif ( Rsrc !

Seite 156 - UTOFUTOF

33-26M32R-FPU Software Manual (Rev.1.01)BRABRAbranch instructionBranch[Mnemonic](1) BRA pcdisp8(2) BRA pcdisp24[Function]Branch(1) PC = ( PC &

Seite 157 - Exclusive OR

33-27 M32R-FPU Software Manual (Rev.1.01)BSETBSETINSTRUCTIONS3.2 Instruction descriptionbit operation InstructionsBit set[M32R-FPU Extended Instructio

Seite 158 - XOR3XOR3

33-28M32R-FPU Software Manual (Rev.1.01)BTSTBTSTINSTRUCTIONS3.2 Instruction descriptionbit operation InstructionsBit test[M32R-FPU Extended Instructio

Seite 159 - APPENDICES

33-29 M32R-FPU Software Manual (Rev.1.01)CLRPSWCLRPSWINSTRUCTIONS3.2 Instruction descriptionbit operation InstructionsClear PSW[M32R-FPU Extended Inst

Seite 160

33-30M32R-FPU Software Manual (Rev.1.01)CMP[Mnemonic]CMP Rsrc1,Rsrc2[Function]CompareC = ( ( signed ) Rsrc1 < ( signed ) Rsrc2 ) ? 1:0;[Descri

Seite 161

33-31 M32R-FPU Software Manual (Rev.1.01)CMPI[Mnemonic]CMPI Rsrc,#imm16[Function]CompareC = ( ( signed ) Rsrc < ( signed short ) imm16 ) ? 1:0

Seite 162

M32R-FPU Software Manual (Rev.1.01)CHAPTER 3 INSTRUCTIONS3.1 Conventions for instruction description ...

Seite 163

33-32M32R-FPU Software Manual (Rev.1.01)CMPU[Mnemonic]CMPU Rsrc1,Rsrc2[Function]CompareC = ( ( unsigned ) Rsrc1 < ( unsigned ) Rsrc2 ) ? 1:0;[

Seite 164

33-33 M32R-FPU Software Manual (Rev.1.01)CMPUI[Mnemonic]CMPUI Rsrc,#imm16[Function]CompareC = ( ( unsigned ) Rsrc < ( unsigned ) ( ( signed shor

Seite 165

33-34M32R-FPU Software Manual (Rev.1.01)dest1001 src0000 00000000 00000000DIV Rdest,RsrcDIV[Mnemonic]DIV Rdest,Rsrc[Function]Signed divisionRdest =

Seite 166

33-35 M32R-FPU Software Manual (Rev.1.01)DIVU[Mnemonic]DIVU Rdest,Rsrc[Function]Unsigned divisionRdest = ( unsigned ) Rdest / ( unsigned ) Rsrc;[De

Seite 167

33-36M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionFADDFADD[Mnemonic]FADD Rdest,Rsrc1,Rsrc2[Function]Floating-point addRd

Seite 168

33-37 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction description[Supplemental Operation Description]The following shows the values of

Seite 169

33-38M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionFCMPFCMPsrc11101 src20000 dest0000 00001100FCMP Rdest,Rsrc1,Rsrc2[Mnem

Seite 170

33-39 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction description[Supplemental Operation Description]The following shows the values of

Seite 171

33-40M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionFCMPEFCMPEsrc11101 src20000 dest0000 00001101FCMPE Rdest,Rsrc1,Rsrc2[M

Seite 172

33-41 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction description[Supplemental Operation Description]The following shows the values of

Seite 173

M32R-FPU Software Manual (Rev.1.01)This page left blank intentionally.

Seite 174

33-42M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionFDIVFDIV[Mnemonic]FDIV Rdest,Rsrc1,Rsrc2[Function]Floating-point divid

Seite 175

33-43 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction description[Supplemental Operation Description]The following shows the values of

Seite 176

33-44M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionFMADDFMADD[Mnemonic]FMADD Rdest,Rsrc1,Rsrc2[Function]Floating-point mu

Seite 177

33-45 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction description[Supplemental Operation Description]The following shows the values of

Seite 178

33-46M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionDN=1Value after Multiplication OperationValue after Addition OperationI

Seite 179

33-47 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionFMSUBFMSUB[Mnemonic]FMSUB Rdest,Rsrc1,Rsrc2[Function]Floating-point m

Seite 180

33-48M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction description[Supplemental Operation Description]The following shows the values of R

Seite 181

33-49 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionDN=1Value after Multiplication OperationValue after Subtraction Operat

Seite 182

33-50M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionFMULFMUL[Mnemonic]FMUL Rdest,Rsrc1,Rsrc2[Function]Floating-point multi

Seite 183

33-51 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction description[Supplemental Operation Description]The following shows the values of

Seite 184

CHAPTER 1CPU PROGRAMMIING MODEL1.1 CPU Register1.2 General-purpose Registers1.3 Control Registers1.4 Accumulator1.5 Program Counter1.6 Data Format1.7

Seite 185

33-52M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionFSUBFSUB[Mnemonic]FSUB Rdest,Rsrc1,Rsrc2[Function]Floating-point subtr

Seite 186

33-53 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionRsrc2SubtractionUIPLQNaNQNaNSNaNQNaNSNaN+0+0+0(Note)(Note)+Infinity+In

Seite 187

33-54M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionFTOIFTOI[Mnemonic]FTOI Rdest,Rsrc[Function]Convert the floating-point

Seite 188

33-55 M32R-FPU Software Manual (Rev.1.01)[Supplemental Operation Description]The results of the FTOI instruction executed based on the Rsrc value, bot

Seite 189

33-56M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionFTOSFTOS[Mnemonic]FTOS Rdest,Rsrc[Function]Convert the floating-point

Seite 190

33-57 M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction description[Supplemental Operation Description]The results of the FTOS instructio

Seite 191

33-58M32R-FPU Software Manual (Rev.1.01)INSTRUCTIONS3.2 Instruction descriptionITOFITOF[Mnemonic]ITOF Rdest,Rsrc[Function]Convert the integer to a fl

Seite 192

33-59 M32R-FPU Software Manual (Rev.1.01)JLJLbranch instructionJump and link[Mnemonic]JL Rsrc[Function]Subroutine call (register direct)R14 = ( PC &a

Seite 193

33-60M32R-FPU Software Manual (Rev.1.01)JMPJMPbranch instructionJump[Mnemonic]JMP Rsrc[Function]JumpPC = Rsrc & 0xfffffffc;[Description]JMP caus

Seite 194 - Software Manual

33-61 M32R-FPU Software Manual (Rev.1.01)LDLDload/store instructionLoad[Mnemonic](1) LD Rdest,@Rsrc(2) LD Rdest,@Rsrc+(3) LD Rdest,@(disp16,Rsrc

Kommentare zu diesen Handbüchern

Keine Kommentare