From 213f93cce43218c35bda92b2ae1c2120d627ce25 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Fri, 27 Sep 2013 22:14:26 +0200 Subject: [PATCH] disable DEBUG --- libsrc/atari/shadow_ram_handlers.s | 2 +- libsrc/atari/shadow_ram_prepare.s | 41 +++++++++++++++--------------- libsrc/atari/system_check.s | 2 +- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/libsrc/atari/shadow_ram_handlers.s b/libsrc/atari/shadow_ram_handlers.s index 09a59ea76..78709c38c 100644 --- a/libsrc/atari/shadow_ram_handlers.s +++ b/libsrc/atari/shadow_ram_handlers.s @@ -4,7 +4,7 @@ ; Christian Groessler, chris@groessler.org, 2013 ; -DEBUG = 1 +;DEBUG = 1 CHKBUF = 1 ; check if bounce buffering is needed (bounce buffering is always done if set to 0) .ifdef __ATARIXL__ diff --git a/libsrc/atari/shadow_ram_prepare.s b/libsrc/atari/shadow_ram_prepare.s index bffabc059..a08aa8cfe 100644 --- a/libsrc/atari/shadow_ram_prepare.s +++ b/libsrc/atari/shadow_ram_prepare.s @@ -9,7 +9,7 @@ ; Christian Groessler, chris@groessler.org, 2013 ; -DEBUG = 1 +;DEBUG = 1 .ifdef __ATARIXL__ @@ -349,6 +349,25 @@ restore:lda RAMTOP_save sta APPMHI+1 rts +; short delay +.proc delay + + lda #10 +@loop: jsr delay1 + clc + sbc #0 + bne @loop + rts + +delay1: ldx #0 + ldy #0 +@loop: dey + bne @loop + dex + bne @loop + rts + +.endproc .ifdef DEBUG @@ -357,26 +376,6 @@ restore:lda RAMTOP_save sramsize: .word __SHADOW_RAM_SIZE__ -; short delay -.proc delay - - lda #10 -l: jsr delay1 - clc - sbc #0 - bne l - rts - -delay1: ldx #0 - ldy #0 -loop: dey - bne loop - dex - bne loop - rts - -.endproc - .endif ; .ifdef DEBUG screen_device: .byte "S:",0 diff --git a/libsrc/atari/system_check.s b/libsrc/atari/system_check.s index b1f823aad..5a23546f0 100644 --- a/libsrc/atari/system_check.s +++ b/libsrc/atari/system_check.s @@ -11,7 +11,7 @@ ; Christian Groessler, chris@groessler.org, 2013 ; -DEBUG = 1 +;DEBUG = 1 .ifdef __ATARIXL__