> 
>>   ;  function: 16 bits divide routine; N.O.P.; [EMAIL PROTECTED]
>>   ;entry name: Div16Bits
>>   ;        in: DE, BC
>>   ;       out: BC=DE/BC  HL=rest   (BC=0; HL=DE when division by zero)
>>   ;   changes: A=0, HL, BC, DE=0, flags
>>   ;     speed: 1783-2087 clocks (min. 1715 calculations/sec)
>> 
>>   Div16Bits    ld    a,16
>>                ld    hl,0
>>                ld    (Div16Bits_4+1),sp
>>                ld    (Div16Bits_1+1),bc
>>   Div16Bits_1  ld    sp,0

I would better make sure to turn the interrupts off before calling this
routine!
Otherwise, your computer may crash when an interrupts occurs while it is in
this division routine.

Best regards,
Alex Wulms 



Reply via email to