added exponent alignment routine, fix for FAC1 normalization

This commit is contained in:
FeralChild64 committed 2020-02-03 21:37:27 +01:00
1 parent c62f53058e
commit b0d0177114
8 files changed
+259 -85

No files matched your search

+2 -5
View File
@@ -19,11 +19,8 @@
mov_FAC1_MEM:
// Checked in the available documentation:
// - https://www.c64-wiki.com/wiki/Floating_point_arithmetic
// - https://www.lemon64.com/forum/viewtopic.php?t=67576&sid=d41e77cdddd28d6f9c9d52ce5b4e8dc3
// that $22/$23 (INDEX+0 and INDEX+1) are at least sometimes used for pointer storage.
// Confirmed by experimenting with original ROM that this is the case here too.
// Original routines use $22/$23 location for a vector too, see here:
// - https://codebase64.org/doku.php?id=base:kernal_floating_point_mathematics
sty INDEX+1
stx INDEX+0