gc80c520a CORERIVER Semiconductor, gc80c520a Datasheet - Page 111

no-image

gc80c520a

Manufacturer Part Number
gc80c520a
Description
Midas1.0 Family Mask Rom/eprom/romless 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
MiDAS1.0 Family
DIV
AB
Divide
Function:
DIV AB divides the unsigned eight-bit integer in the Accumulator by the
Description:
unsigned eight-bit integer in register B. The Accumulator receives the integer
part of the quotient; register B receives the integer remainder. The carry and OV
flags will be cleared.
Exception: if B had originally contained 00h, the values returned in the
Accumulator and B register will be undefined and the overflow flag will be set.
The carry flag is cleared in any case.
The Accumulator contains 251 (0FBh or 11111011b) and B contains 18 (12h or
Example:
00010010b). The instruction,
DIV AB
will leave 13 in the Accumulator (0Dh or 00001101b) and the value 17 (11h or
00010001b) in B, since 251 = (13 X 18) + 17. Carry and OV will both be
cleared.
1
Bytes:
3
Cycles:
1
0
0
0
0 1 0 0
Encoding:
DIV
Operation:
(A)
, (B)
(A) / (B)
15-8
7-0
Page 111 of 187

Related parts for gc80c520a