Update convert_Y_to_FAC1
This commit is contained in:
1 parent
27b03948a2
commit
376823fc65
3 files changed
+10
-7
No files matched your search
@@ -3,7 +3,9 @@
|
||||
;; #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 - convert uint8 in Y to FAC1
|
||||
;
|
||||
; Input: Y - uint8 to convert to float
|
||||
@@ -11,6 +13,8 @@
|
||||
;
|
||||
; Stores Y into first FAC1 mantissa byte, clears the second and calls convert_i16_to_FAC1
|
||||
;
|
||||
; This is verified to be identical to the original Microsoft implementation where it was named SNGFLT.
|
||||
;
|
||||
; - https://www.c64-wiki.com/wiki/BASIC-ROM
|
||||
; - https://sta.c64.org/cbm64basconv.html
|
||||
; - https://sourceforge.net/p/acme-crossass/code-0/38/tree/trunk/ACME_Lib/cbm/c64/float.a?force=True
|
||||
@@ -18,7 +22,5 @@
|
||||
;
|
||||
|
||||
convert_Y_to_FAC1:
|
||||
sty FAC1_mantissa+1
|
||||
lda #$00
|
||||
sta FAC1_mantissa
|
||||
jmp convert_i16_to_FAC1
|
||||
lda #0
|
||||
beq GIVAYF ; Always branches
|
||||
Reference in new issue
Block a user