Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

V850E/ME2 Datasheet(PDF) 72 Page - NEC

Part # V850E/ME2
Description  32-Bit Microprocessor Core
PDF  226 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NEC [NEC]
Direct Link  http://www.nec.com/
Logo NEC - NEC

V850E/ME2 Datasheet(HTML) 72 Page - NEC

Back Button V850E/ME2 Datasheet HTML 68Page - NEC V850E/ME2 Datasheet HTML 69Page - NEC V850E/ME2 Datasheet HTML 70Page - NEC V850E/ME2 Datasheet HTML 71Page - NEC V850E/ME2 Datasheet HTML 72Page - NEC V850E/ME2 Datasheet HTML 73Page - NEC V850E/ME2 Datasheet HTML 74Page - NEC V850E/ME2 Datasheet HTML 75Page - NEC V850E/ME2 Datasheet HTML 76Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 72 / 226 page
background image
CHAPTER 5 INSTRUCTIONS
User’s Manual U14559EJ3V1UM
72
<Arithmetic operation instruction>
Divide halfword
DIVH
Divide Halfword
Instruction format
(1) DIVH reg1, reg2
(2) DIVH reg1, reg2, reg3
Operation
(1) GR [reg2]
← GR [reg2] ÷ GR [reg1]
(2) GR [reg2]
← GR [reg2] ÷ GR [reg1]
GR [reg3]
← GR [reg2] % GR [reg1]
Format
(1) Format I
(2) Format XI
Opcode
15
0
(1)
rrrrr000010RRRRR
15
0
31
16
(2)
rrrrr111111RRRRR
wwwww01010000000
Flag
CY
–
OV
1 if overflow occurs; otherwise, 0.
S
1 if the result of an operation is negative; otherwise, 0.
Z
1 if the result of an operation is 0; otherwise, 0.
SAT
–
Explanation
(1) Divides the word data of general-purpose register reg2 by the lower halfword data of
general-purpose register reg1, and stores the quotient in general-purpose register reg2. If
the data is divided by 0, overflow occurs, and the quotient is undefined.
The data of
general-purpose register reg1 is not affected.
(2) Divides the word data of general-purpose register reg2 by the lower halfword data of
general-purpose register reg1, and stores the quotient in general-purpose register reg2
and the remainder in general-purpose register reg3. If the data is divided by 0, overflow
occurs, and the quotient is undefined. The data of general-purpose register reg1 is not
affected.
Remark
(1) The remainder is not stored.
Overflow occurs when the maximum negative value
(80000000H) is divided by –1 (in which case the quotient is 80000000H) and when data is
divided by 0 (in which case the quotient is undefined). If an interrupt occurs while this
instruction is being executed, execution is aborted, and the interrupt is serviced. Upon
returning from the interrupt, the execution is restarted from the beginning, with the return
address being the address of this instruction. Also, general-purpose registers reg1 and
reg2 will retain their original values prior to the start of execution.
Do not specify r0 as the destination register reg2.
The higher 16 bits of general-purpose register reg1 are ignored when division is executed.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com