From 33bd9b5b51c21e9696a81c8f6a5016d88c96b064 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 23 Nov 2000 22:15:57 +0000 Subject: [PATCH] Sqeezed one byte out of the zerobss routine:-) git-svn-id: svn://svn.cc65.org/cc65/trunk@480 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/zerobss.s | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 -- 2.39.5