Update -32768

This commit is contained in:
Rikard Nordgren authored and FeralChild64 committed 2026-05-09 17:01:44 +02:00
1 parent d65db6a049
commit 1adfa10462
2 files changed
+8 -2

No files matched your search

+6 -1
View File
@@ -3,8 +3,13 @@
;; #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 - The floating point constant -32768
;
; This is verified to be identical to the original Microsoft implementation where it was named N32768.
; ;
; Math package - a constant, for documentation see:
; - https://www.c64-wiki.com/wiki/BASIC-ROM ; - https://www.c64-wiki.com/wiki/BASIC-ROM
; - Computes Mapping the Commodore 64, page 105 ; - Computes Mapping the Commodore 64, page 105
; ;
+2 -1
View File
@@ -20,10 +20,11 @@ int matches[MAX_SIZE];
int phase_mask[MAX_SIZE+MAX_SIZE]; int phase_mask[MAX_SIZE+MAX_SIZE];
#define NUM_CHUNKS 14 #define NUM_CHUNKS 15
// Pairs of start, end memory addresses of known exact similarity with the open source Microsoft BASIC // Pairs of start, end memory addresses of known exact similarity with the open source Microsoft BASIC
unsigned short microsoft_basic_chunks[NUM_CHUNKS * 2] = { unsigned short microsoft_basic_chunks[NUM_CHUNKS * 2] = {
0xAEA8, 0xAEAC, 0xAEA8, 0xAEAC,
0xB1A5, 0xB1A9,
0xB248, 0xB24C, 0xB248, 0xB24C,
0xB391, 0xB39D, 0xB391, 0xB39D,
0xB3A2, 0xB3A5, 0xB3A2, 0xB3A5,