5 .include "testutils.inc"
7 # Regular division - check signs
8 # The S flag is based on the quotient, not the remainder
46 # If the data is divided by zero, OV=1 and the quotient is undefined.
47 # According to NEC, the S and Z flags, and the output registers, are
66 flags sat + c + v + s + z
70 # Zero / (N!=0) => normal
83 # Test for regular overflow
96 # The Z flag is based on the quotient, not the remainder
107 # If the quot and rem registers are the same, the remainder is stored.