From: cuz Date: Thu, 23 Nov 2000 22:15:57 +0000 (+0000) Subject: Sqeezed one byte out of the zerobss routine:-) X-Git-Tag: V2.12.0~3056 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=33bd9b5b51c21e9696a81c8f6a5016d88c96b064;p=cc65 Sqeezed one byte out of the zerobss routine:-) git-svn-id: svn://svn.cc65.org/cc65/trunk@480 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/zerobss.s b/libsrc/common/zerobss.s index 9e1d00524..321a1f560 100644 --- a/libsrc/common/zerobss.s +++ b/libsrc/common/zerobss.s @@ -32,16 +32,15 @@ L2: sta (ptr1),y ; Clear remaining page (y is zero on entry) -L3: ldx #<__BSS_SIZE__ - beq L5 -L4: sta (ptr1),y - iny - dex - bne L4 +L3: cpy #<__BSS_SIZE__ + beq L4 + sta (ptr1),y + iny + bne L3 ; Done -L5: rts +L4: rts