From 7f0dbde77ff0f0084b8919b5098dafd13da8f32f Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Fri, 31 May 2013 14:49:25 +0200 Subject: [PATCH] Take SHADOW_RAM size into account. --- libsrc/atari/shadow_ram_prepare.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsrc/atari/shadow_ram_prepare.s b/libsrc/atari/shadow_ram_prepare.s index 60de9dbf1..6bc3ab87e 100644 --- a/libsrc/atari/shadow_ram_prepare.s +++ b/libsrc/atari/shadow_ram_prepare.s @@ -47,7 +47,7 @@ cont: ldx #0 ; channel 0 .segment "SRPREPHDR" .word __SRPREP_LOAD__ - .word __SRPREP_LOAD__ + __SRPREP_SIZE__ - 1 + .word __SRPREP_LOAD__ + __SRPREP_SIZE__ + __SHADOW_RAM_SIZE__ - 1 ; ------------------------------------------------------------------------ ; Actual code @@ -176,9 +176,9 @@ L1: lda sp,x ; copy chargen to low memory - lda #>(__SRPREP_LOAD__ + __SRPREP_SIZE__) + lda #>(__SRPREP_LOAD__ + __SRPREP_SIZE__ + __SHADOW_RAM_SIZE__) sta ptr3+1 - lda #<(__SRPREP_LOAD__ + __SRPREP_SIZE__) + lda #<(__SRPREP_LOAD__ + __SRPREP_SIZE__ + __SHADOW_RAM_SIZE__) sta ptr3 beq cg_addr_ok @@ -250,7 +250,7 @@ no_copy: lda #>__CHARGEN_SIZE__ sta tmp2 lda #<__CHARGEN_SIZE__ - sta tmp2+1 + sta tmp1 jsr memcopy ; re-enable ROM -- 2.39.5