5 .include "testutils.inc"
7 # Regular divhision - check signs
8 # The S flag is based on the quotient, not the remainder
46 # Only the lower half of the dividend is used
58 # If the data is divhided by zero, OV=1 and the quotient is undefined.
59 # According to NEC, the S and Z flags, and the output registers, are
78 flags sat + c + v + s + z
82 # Zero / (N!=0) => normal
95 # Test for regular overflow
108 # The Z flag is based on the quotient, not the remainder
119 # If the quot and rem registers are the same, the remainder is stored.