Sonic Alert msm80154s Clock Radio User Manual


 
MSM80C154S/83C154S/85C154HVS
284
34. DIV AB (Divide accumulator by B)
10000100
70
Instruction code
Operation
Number of bytes
Number of cycles
Flags
(PSW)
Description
Example DIV AB(0AEH÷7H=18
…………
remainder 6H)
Instruction code
: Byte 1
(A) quotient(A)/(B)
(B) remainder
:
C AC F0 RS1 RS0 OV F1 P
••
:
:
:
The accumulator contents are devided by the contents of
arithmetic operation register (B). The two data values are
handled as integers without sign. The quotient is placed in the
accumulator, and the remainder in the arithmetic operation
register (B). The carry flag is always cleared, and the overflow
flag (OV) is set to 1 if division by 0 is executed. This flag is
cleared in all other cases. If division by 0 is executed, the
accumulator and arithmetic operation register (B) contents
remain unchanged.
:
10000100
70
Byte 1
Accumulator
10101110
70
1
4
Before execution
Accumulator
00011000
70
After execution
:
B register
00000111
70
B register
00000110
70