diff --git a/src/basic/math_consts/b1a5.const_NEG_32768.s b/src/basic/math_consts/b1a5.const_NEG_32768.s index ffa7c0b9..c080307a 100644 --- a/src/basic/math_consts/b1a5.const_NEG_32768.s +++ b/src/basic/math_consts/b1a5.const_NEG_32768.s @@ -3,8 +3,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 - 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 ; - Computes Mapping the Commodore 64, page 105 ; diff --git a/tools/similarity.c b/tools/similarity.c index e5c56e41..f2081fb4 100644 --- a/tools/similarity.c +++ b/tools/similarity.c @@ -20,10 +20,11 @@ int matches[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 unsigned short microsoft_basic_chunks[NUM_CHUNKS * 2] = { 0xAEA8, 0xAEAC, + 0xB1A5, 0xB1A9, 0xB248, 0xB24C, 0xB391, 0xB39D, 0xB3A2, 0xB3A5,