User Tools

Site Tools


base:kernal_floating_point_mathematics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
base:kernal_floating_point_mathematics [2019-10-14 09:45]
silverdr [Zero Page Locations]
base:kernal_floating_point_mathematics [2019-10-14 10:07] (current)
silverdr [2.4 Division]
Line 129: Line 129:
  
 **$bb0f** = Divide the memory contents pointed to by A/Y (low/high) by FAC1.\\ **$bb0f** = Divide the memory contents pointed to by A/Y (low/high) by FAC1.\\
-**$bb12** = Entry if FAC2 already loaded. Accumulator must load FAC1 exponent ($61) beforehand to set the zero flag.+**$bb12** = Entry if FAC2 already loaded. Accumulator must load FAC1 exponent ($61) beforehand to set the zero flag. Sign comparison is not performed and ARISGN byte at $6f is not set, which has to be accounted for when using this entry point. Hard to debug sign errors may occur otherwise.
  
 Divides FAC2 by FAC1, leaving the quotient in FAC1, and the remainder in FAC2. Divides FAC2 by FAC1, leaving the quotient in FAC1, and the remainder in FAC2.
base/kernal_floating_point_mathematics.txt ยท Last modified: 2019-10-14 10:07 by silverdr