mirror of
https://github.com/cc65/cc65.git
synced 2024-09-29 02:55:20 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2355 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
93f1a5b61a
commit
3a78b76b95
@ -35,14 +35,14 @@ L1: inx
|
|||||||
|
|
||||||
L2: lda (ptr1),y ; Copy one character
|
L2: lda (ptr1),y ; Copy one character
|
||||||
sta (ptr2),y
|
sta (ptr2),y
|
||||||
beq L3 ; Bail out if terminator reached
|
beq L5 ; Bail out if terminator reached (A = 0)
|
||||||
iny
|
iny
|
||||||
bne L1
|
bne L1
|
||||||
inc ptr1+1
|
inc ptr1+1
|
||||||
inc ptr2+1 ; Bump high bytes
|
inc ptr2+1 ; Bump high bytes
|
||||||
bne L1 ; Branch always
|
bne L1 ; Branch always
|
||||||
|
|
||||||
; Fill the remaining bytes. A is zero if we come here
|
; Fill the remaining bytes.
|
||||||
|
|
||||||
L3: inx
|
L3: inx
|
||||||
bne L4
|
bne L4
|
||||||
@ -50,7 +50,7 @@ L3: inx
|
|||||||
beq L9
|
beq L9
|
||||||
|
|
||||||
L4: sta (ptr2),y
|
L4: sta (ptr2),y
|
||||||
iny
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user