Mitsubishi M16C/60 Series Software Manual page 66

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

D IV
(A) ← (M(zz+(X)+1),M(zz+(X)) / (A)
Op e r a t io n :
M(S) ← one's complement of Remainder
(S) ← (S) – 1
F u n c t io n :
Divides the 16-bit data in M(zz+(X)) (low-order byte) and
M(zz+(X)+1) (high-order byte) by the contents of A. The
quotient is stored in A and the one's complement of the
remainder is pushed onto the stack.
Zero page
St a t u s fla g :
No change
Addressing mode
∆DIV∆$zz,X
Zero page X
Notes 1: The quotient's overflow and zero division can not be detected. Check the
quotient's overflow and zero division by software before DIV instruction is
executed. This instruction changes the Stack Pointer and the contents of the
Accumulator.
2: The DIV instruction can not be used for any products.
60
DIV
IDE MEMORY BY ACCUMULATOR
dividend low-order
dividend high-order
one's complement of
Remainder
Statement
M (zz+(X))
M (zz+(X)+1)
M(S)
Machine codes
Byte number
E2
, zz
16
16
D IV
(A)
divisior
(A)
quotient
Cycle number
2
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/20 series

Table of Contents