From e3b9e9a76ec4b836e46e567a98b0c3956d9ff713 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Fri, 4 Oct 2013 12:40:35 +0200 Subject: [PATCH] small optimization --- libsrc/atari/system_check.s | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libsrc/atari/system_check.s b/libsrc/atari/system_check.s index 9dd42f154..84573c84a 100644 --- a/libsrc/atari/system_check.s +++ b/libsrc/atari/system_check.s @@ -98,9 +98,8 @@ syschk: lda $fcd8 ; from ostype.s sys_ok: .include "xlmemchk.inc" ; calculate lowest address we will use when we move the screen buffer down - sec lda MEMLO - sbc lowadr + cmp lowadr lda MEMLO+1 sbc lowadr+1 bcc memlo_ok @@ -140,17 +139,15 @@ syschk: ;tmp contains address which must be above .bss's end - sec lda tmp - sbc #<(__BSS_RUN__ + __BSS_SIZE__) + cmp #<(__BSS_RUN__ + __BSS_SIZE__) lda tmp+1 sbc #>(__BSS_RUN__ + __BSS_SIZE__) bcc mem_err ; program doesn't fit into memory - sec lda MEMLO - sbc #<__STARTADDRESS__ + cmp #<__STARTADDRESS__ lda MEMLO+1 sbc #>__STARTADDRESS__ bcc memlo_ok -- 2.39.5