From 742808e762c95c77b942b710431a55200f28b5b3 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 8 Mar 2016 01:30:49 -0500 Subject: fix title screen breakage --- bigfloat.s | 3 +++ checkmem.s | 6 +++--- newtitle.s | 9 +++++++-- taipan.c | 6 +++--- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/bigfloat.s b/bigfloat.s index 5acbecf..d3115bc 100644 --- a/bigfloat.s +++ b/bigfloat.s @@ -16,6 +16,8 @@ ; atari.inc also has a typo, PLD1P for FLD1P FLD1P = PLD1P + ;bfstart = * + .rodata BIG_64K: ; 65535 (2**16-1) in float format. .byte $42, $06, $55, $36, $00, $00 @@ -369,3 +371,4 @@ _big_cmp: tax ; sign extension, grr. rts + ;.out .sprintf("bigfloat.s code is %d bytes", *-bfstart) diff --git a/checkmem.s b/checkmem.s index 9994add..a539e4b 100644 --- a/checkmem.s +++ b/checkmem.s @@ -101,11 +101,11 @@ gr_0: ; save display list pointer where taipan.c's main() can find it. ; this is done ASAP after the CIO call, to avoid saving the DL ; after SpartaDOS's TDLINE has had a chance to modify it. - ; we use FR1 because the menu code in newtitle.s trashes FR0. + ; we use FRE because the menu code in newtitle.s trashes FR0 and FR1. lda SDLSTL - sta FR1 + sta FRE lda SDLSTH - sta FR1+1 + sta FRE+1 rts diff --git a/newtitle.s b/newtitle.s index 6bc0b4a..a2c8559 100644 --- a/newtitle.s +++ b/newtitle.s @@ -285,11 +285,16 @@ start: ; still needs to be done here for the cart. .ifdef CART_TARGET lda SDLSTL - sta FR1 + sta FRE lda SDLSTH - sta FR1+1 + sta FRE+1 .endif + ; helpshowing is FR1, it's being messed with by the checkmem + ; code so we need to initialize it. + lda #0 + sta helpshowing + ; setup our display list lda #