Performs an integer division of content of Rs0 by content
of Rs1, then moves quotient to Rd3 and remainder to Rd3'
according to BS (bank select). Instruction is stack
conditioned.
Takes 39 cycles to execute.
Example: IDIV 21 3 20 3 0x1F 0x1E
MPC BS3 C3 P3 P1 P0
---------------------
IDIV 0 0 00 1e 1f
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 0 0 00 00 00
- 3 0 21 00 00
- 3 0 20 00 00
Configuration Register: 0x30 (CrFiluExc)
 |
Exception No. |
Mask |
R/W Access |
Name |
 |
[6] |
00000000 00000040 |
RW |
Division by zero (Low bank) |
[7] |
00000000 00000080 |
RW |
Division by zero (High bank) |
 |
IDIV 0x23 3 0x22 3 0x21 0x20
!! Divide content of register 0x21 by
!! content of register 0x20, then put
!! the quotient in register 0x23 and
!! remainder in 0x22