Add abs_and_normal_FAC1

This commit is contained in:
Rikard Nordgren authored and FeralChild64 committed 2026-02-01 18:35:00 +01:00
1 parent 81eb67adb8
commit a83aecad0a
3 files changed
+25 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
;; #LAYOUT# STD * #TAKE
;; #LAYOUT# X16 BASIC_0 #TAKE-OFFSET 2000
;; #LAYOUT# * BASIC_0 #TAKE
;; #LAYOUT# * * #IGNORE
; This file is under the MIT license, it contains code released by Microsoft Corporation.
; See LICENSE for more information.
; Math package - abs and noramlize FAC1
;
; Input:
; CF - Sign of number
;
; This is verified to be identical to the original Microsoft implementation where it was named FADFLT.
;
abs_and_normal_FAC1:
bcs normal_FAC1 ; If CF set only normalize
jsr inv_FAC1
; Fallthrough to normal_FAC1