From 1347947f0d76040b92e694c5b290c78fd22da885 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Tue, 25 Jun 2013 00:48:26 +0200 Subject: [PATCH] some nicer debug messages --- libsrc/atari/shadow_ram_prepare.s | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/libsrc/atari/shadow_ram_prepare.s b/libsrc/atari/shadow_ram_prepare.s index 079443ae6..123872196 100644 --- a/libsrc/atari/shadow_ram_prepare.s +++ b/libsrc/atari/shadow_ram_prepare.s @@ -58,7 +58,7 @@ cont: ldx #0 ; channel 0 sramprep: .ifdef DEBUG - print_string "in sramprep" + print_string "entering stage #2" .endif ; save values of modified system variables and ports @@ -158,11 +158,6 @@ okoko: sta ICCOM,x jsr CIOV_org -.ifdef DEBUG - print_string "Stage #2 OK" - jsr delay -.endif - ; Save the zero page locations we need @@ -174,6 +169,11 @@ L1: lda sp,x ; copy chargen to low memory +.ifdef DEBUG + print_string "copy chargen to low memory" + print_string "set up high memory" +.endif + lda #>(__SRPREP_LOAD__ + __SRPREP_SIZE__ + __SHADOW_RAM_SIZE__) sta ptr3+1 lda #<(__SRPREP_LOAD__ + __SRPREP_SIZE__ + __SHADOW_RAM_SIZE__) @@ -235,7 +235,7 @@ do_copy:lda #<__SHADOW_RAM_LOAD__ no_copy: -; copy chargen to its new location +; copy chargen to its new (final) location lda ptr3 sta ptr1 @@ -260,6 +260,10 @@ no_copy: sta NMIEN ; enable VB again cli ; and enable IRQs +.ifdef DEBUG + print_string "Stage #2 OK" + jsr delay +.endif rts -- 2.39.5