Update cos_FAC1
This commit is contained in:
1 parent
18e51b855b
commit
113b3cf7c2
3 files changed
+11
-5
No files matched your search
@@ -2,9 +2,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 - cosine of FAC1 in radians
|
||||
;
|
||||
; This is verified to be identical to the original Microsoft implementation where it was named COS
|
||||
;
|
||||
; Adds pi/2 to FAC1 and falls through to the sine function
|
||||
;
|
||||
; See also:
|
||||
@@ -18,10 +22,11 @@
|
||||
|
||||
|
||||
COS:
|
||||
ldy #>const_HALF_PI
|
||||
|
||||
lda #<const_HALF_PI
|
||||
ldy #>const_HALF_PI
|
||||
jsr add_MEM_FAC1
|
||||
|
||||
|
||||
; FALLTHROUGH to SIN
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user