From 99c7d98998c640171de6ae2f1f20ab933bccd542 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Tue, 13 Oct 2020 23:28:39 -0400 Subject: [PATCH] Add some comments about the lack of checking of a score "overflow". --- BuGS/score.s | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/BuGS/score.s b/BuGS/score.s index b3ee84d..a628ab1 100644 --- a/BuGS/score.s +++ b/BuGS/score.s @@ -96,6 +96,15 @@ scoreStartGame entry ; The score tile to increment is in the X register +; Note that this function and the next one do no sanitization +; of the value in the X register. That also means that if +; someone scores several trillion in a single game, we will +; keep adding digits to the score displayed, eventually +; occupying tiles on the previous line on the LHS. +; +; But it is kind of classic for these arcade games to act +; weird if people do something deemed impossible by the +; author. So, I challenge you to get such a score! scoreAddOneToTile entry _dirtyNonGameTile lda tileType,x