Hi
IQMath lib 2.1.4.0
C64xplus
IQNdiv
According to the header on this function in IQmath_inline.h
;; On Exit: A4 = Num/Den result in IQ format
;; = 0x7FFFFFFF if +ve overflow
;; = 0x80000000 if -ve overflow
;; = 0x7FFFFFFF if Den == 0
However, if den = 0, the offset in the code below becomes 0xffffff81 and is a really bad offset to use in IQDivTable[] and will give you a memory exception.
t1 = qfmt + sbits;
var2 = (59U - t1);
offset = (U32_IQ)Dnorm >> 23U;
offset = offset - 127U;
Dm=IQdivTable[offset];
Cheers2u
Eddie