Update const_LOG_2

This commit is contained in:
Rikard Nordgren authored and FeralChild64 committed 2026-04-29 21:18:16 +02:00
1 parent 325b41da8e
commit c494102aed
2 files changed
+8 -4

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 - log(2)
;
; This is verified to be identical to the original Microsoft implementation where it was named LOG2
; ;
; Math package - a constant, for documentation see:
; - https://www.c64-wiki.com/wiki/BASIC-ROM ; - https://www.c64-wiki.com/wiki/BASIC-ROM
; ;
+2 -3
View File
@@ -20,15 +20,14 @@ 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 13
// 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] = {
0xB248, 0xB24C, 0xB248, 0xB24C,
0xB391, 0xB39D, 0xB391, 0xB39D,
0xB3A2, 0xB3A5, 0xB3A2, 0xB3A5,
0xB849, 0xB97D, 0xB849, 0xB97D,
0xB983, 0xB9E4, 0xB983, 0xBCF2,
0xB9EA, 0xBCF2,
0xBD7E, 0xBD90, 0xBD7E, 0xBD90,
0xBDB3, 0xBDC1, 0xBDB3, 0xBDC1,
0xBDDD, 0xBF51, 0xBDDD, 0xBF51,