Add COS
This commit is contained in:
1 parent
87380c3aa1
commit
bda43d1b71
4 files changed
+10
-4
No files matched your search
@@ -253,7 +253,7 @@ Floating point mathematical routines - not official, but well known and broadly
|
|||||||
| `$E097` | `rnd_FAC1` | DONE | |
|
| `$E097` | `rnd_FAC1` | DONE | |
|
||||||
| `$E09A` | `rnd_A` | DONE | |
|
| `$E09A` | `rnd_A` | DONE | |
|
||||||
| `$E0BE` | `rnd_generate` | DONE | |
|
| `$E0BE` | `rnd_generate` | DONE | |
|
||||||
| `$E264` | `cos_FAC1` | NOT DONE | |
|
| `$E264` | `cos_FAC1` | PARTIAL | needs `sin_FAC1` |
|
||||||
| `$E26B` | `sin_FAC1` | NOT DONE | some work already started |
|
| `$E26B` | `sin_FAC1` | NOT DONE | some work already started |
|
||||||
| `$E2B4` | `tan_FAC1` | NOT DONE | |
|
| `$E2B4` | `tan_FAC1` | NOT DONE | |
|
||||||
| `$E30E` | `atn_FAC1` | NOT DONE | |
|
| `$E30E` | `atn_FAC1` | NOT DONE | |
|
||||||
|
|||||||
@@ -5,14 +5,17 @@
|
|||||||
;
|
;
|
||||||
; Math package - cosine of FAC1 in radians
|
; Math package - cosine of FAC1 in radians
|
||||||
;
|
;
|
||||||
|
; Adds pi/2 to FAC1 and falls through to the sine function
|
||||||
|
;
|
||||||
; See also:
|
; See also:
|
||||||
; - [CM64] Computes Mapping the Commodore 64 - page 210
|
; - [CM64] Computes Mapping the Commodore 64 - page 210
|
||||||
; - https://www.c64-wiki.com/wiki/Floating_point_arithmetic
|
; - https://www.c64-wiki.com/wiki/Floating_point_arithmetic
|
||||||
; - https://codebase64.org/doku.php?id=base:kernal_floating_point_mathematics
|
; - https://codebase64.org/doku.php?id=base:kernal_floating_point_mathematics
|
||||||
;
|
;
|
||||||
|
|
||||||
; XXX provide implementation
|
|
||||||
|
|
||||||
COS:
|
COS:
|
||||||
|
ldy #>const_HALF_PI
|
||||||
|
lda #<const_HALF_PI
|
||||||
|
jsr add_MEM_FAC1
|
||||||
|
|
||||||
+STUB_IMPLEMENTATION
|
; FALLTHROUGH to SIN
|
||||||
File renamed without changes.
@@ -0,0 +1,3 @@
|
|||||||
|
$E0 + JSR $B867
|
||||||
|
|
||||||
|
Fragment + call to well known floating point routine
|
||||||
Reference in new issue
Block a user