;
-; Ullrich von Bassewitz, 17.09.1998
+; Ullrich von Bassewitz, 1998-09-17, 2005-02-26.
;
; Zero the bss segment.
;
.importzp ptr1
-.code
+.segment "INIT"
zerobss:
lda #<__BSS_RUN__
; 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