Speed optimization

git-svn-id: svn://svn.cc65.org/cc65/trunk@2362 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-08-18 11:25:31 +00:00
parent f0e0c9007c
commit 833702e25f

View File

@@ -44,17 +44,19 @@ L2: lda (ptr1),y ; Copy one character
; Fill the remaining bytes. ; Fill the remaining bytes.
L3: inx L3: inx ; Counter low byte
bne L4 beq L6 ; Branch on overflow
inc tmp2 L4: sta (ptr2),y ; Clear one byte
beq L9 L5: iny ; Bump pointer
L4: sta (ptr2),y
L5: iny
bne L3 bne L3
inc ptr2+1 ; Bump high byte inc ptr2+1 ; Bump high byte
bne L3 ; Branch always bne L3 ; Branch always
; Bump the counter high byte
L6: inc tmp2
bne L4
; Done, return dest ; Done, return dest
L9: lda ptr2 ; Get low byte L9: lda ptr2 ; Get low byte