mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +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
|
||||
sta (ptr2),y
|
||||
beq L3 ; Bail out if terminator reached
|
||||
beq L5 ; Bail out if terminator reached (A = 0)
|
||||
iny
|
||||
bne L1
|
||||
inc ptr1+1
|
||||
inc ptr2+1 ; Bump high bytes
|
||||
bne L1 ; Branch always
|
||||
|
||||
; Fill the remaining bytes. A is zero if we come here
|
||||
; Fill the remaining bytes.
|
||||
|
||||
L3: inx
|
||||
bne L4
|
||||
@ -50,7 +50,7 @@ L3: inx
|
||||
beq L9
|
||||
|
||||
L4: sta (ptr2),y
|
||||
iny
|
||||
L5: iny
|
||||
bne L3
|
||||
inc ptr2+1 ; Bump high byte
|
||||
bne L3 ; Branch always
|
||||
|
Loading…
x
Reference in New Issue
Block a user