Add sqr_FAC2

This commit is contained in:
Rikard Nordgren authored and FeralChild64 committed 2026-04-29 21:18:16 +02:00
1 parent 661f93a03d
commit 24f1bc9193
4 files changed
+18 -5

No files matched your search

File renamed without changes.
@@ -3,9 +3,13 @@
;; #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 - square root of FAC2
;
; This is verified to be identical to the original Microsoft implementation where it was unnamed
;
; Note:
; - loads .5 into FAC1 and falling through to the exponentiation routine
;
@@ -15,8 +19,17 @@
; - https://codebase64.org/doku.php?id=base:kernal_floating_point_mathematics
;
; XXX provide implementation
!ifdef CONFIG_TRANSCENDENTAL_FUNCTIONS {
sqr_FAC2:
+STUB_IMPLEMENTATION
lda #<const_HALF
ldy #>const_HALF
; FALLLTROUGH to pwr_FAC2_MEM
} else {
jmp do_NOT_IMPLEMENTED_error
}