Update add_MEM_FAC1
This commit is contained in:
1 parent
3c483446be
commit
8f7f6b6530
3 files changed
+7
-3
No files matched your search
@@ -208,7 +208,7 @@ Floating point mathematical routines - not official, but well known and broadly
|
|||||||
| `$B850` | `sub_MEM_FAC1` | DONE | From the Microsoft BASIC, original name: FSUB |
|
| `$B850` | `sub_MEM_FAC1` | DONE | From the Microsoft BASIC, original name: FSUB |
|
||||||
| `$B853` | `sub_FAC2_FAC1` | DONE | From the Microsoft BASIC, original name: FSUBT |
|
| `$B853` | `sub_FAC2_FAC1` | DONE | From the Microsoft BASIC, original name: FSUBT |
|
||||||
| `$B862` | `add_align_exponents` | DONE | From the Microsoft BASIC, original name: FADD5 |
|
| `$B862` | `add_align_exponents` | DONE | From the Microsoft BASIC, original name: FADD5 |
|
||||||
| `$B867` | `add_MEM_FAC1` | DONE | |
|
| `$B867` | `add_MEM_FAC1` | DONE | From the Microsoft BASIC, original name: FADD |
|
||||||
| `$B86A` | `add_FAC2_FAC1` | DONE | |
|
| `$B86A` | `add_FAC2_FAC1` | DONE | |
|
||||||
| `$B8D2` | `abs_and_normal_FAC` | DONE | From the Microsoft BASIC, original name: FADFLT |
|
| `$B8D2` | `abs_and_normal_FAC` | DONE | From the Microsoft BASIC, original name: FADFLT |
|
||||||
| `$B8FE` | `normal_FAC1` | DONE | |
|
| `$B8FE` | `normal_FAC1` | DONE | |
|
||||||
|
|||||||
@@ -3,13 +3,17 @@
|
|||||||
;; #LAYOUT# * BASIC_0 #TAKE
|
;; #LAYOUT# * BASIC_0 #TAKE
|
||||||
;; #LAYOUT# * * #IGNORE
|
;; #LAYOUT# * * #IGNORE
|
||||||
|
|
||||||
;
|
; This file is under the MIT license, it contains code released by Microsoft Corporation.
|
||||||
|
; See LICENSE for more information.
|
||||||
|
|
||||||
; Math package - add memory variable to FAC1
|
; Math package - add memory variable to FAC1
|
||||||
;
|
;
|
||||||
; Input:
|
; Input:
|
||||||
; - .A - address low byte
|
; - .A - address low byte
|
||||||
; - .Y - address high byte
|
; - .Y - address high byte
|
||||||
;
|
;
|
||||||
|
; This is verified to be identical to the original Microsoft implementation where it was named FADD.
|
||||||
|
;
|
||||||
; See also:
|
; See also:
|
||||||
; - [CM64] Computes Mapping the Commodore 64 - page 112
|
; - [CM64] Computes Mapping the Commodore 64 - page 112
|
||||||
; - https://www.c64-wiki.com/wiki/Floating_point_arithmetic
|
; - https://www.c64-wiki.com/wiki/Floating_point_arithmetic
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ int phase_mask[MAX_SIZE+MAX_SIZE];
|
|||||||
unsigned short microsoft_basic_chunks[NUM_CHUNKS * 2] = {
|
unsigned short microsoft_basic_chunks[NUM_CHUNKS * 2] = {
|
||||||
0xB391, 0xB39D,
|
0xB391, 0xB39D,
|
||||||
0xB3A2, 0xB3A5,
|
0xB3A2, 0xB3A5,
|
||||||
0xB849, 0xB866,
|
0xB849, 0xB869,
|
||||||
0xB8D2, 0xB8D5,
|
0xB8D2, 0xB8D5,
|
||||||
0xB947, 0xB97D,
|
0xB947, 0xB97D,
|
||||||
0xB983, 0xB9BB,
|
0xB983, 0xB9BB,
|
||||||
|
|||||||
Reference in new issue
Block a user