changeset 1645:cc5f6fa1da23

Fixed bug in copy where -v was on by default (should be off) and writemsb/writelsb wasn't being cleared when copying multiple files.
author boisy
date Thu, 15 Jul 2004 15:39:38 +0000
parents d6e7953964e0
children cadc44fb582a
files level1/cmds/copy.asm
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/level1/cmds/copy.asm	Thu Jul 15 14:32:42 2004 +0000
+++ b/level1/cmds/copy.asm	Thu Jul 15 15:39:38 2004 +0000
@@ -302,7 +302,11 @@
          leax  TooMany,pcr
          lbsr  WrLine
          lbra  ExitOk
-OpenSrc  ldx   <srcfname	get file to open
+OpenSrc  
+         ldd   #$0000
+         std   <writemsb	clear writemsb/lsb
+         std   <writelsb
+         ldx   <srcfname	get file to open
          pshs  x
          lbsr  StrLen		get length
          std   <lstfopln	save length
@@ -430,7 +434,7 @@
          os9   I$Write  	write it out!
          lbcs  ShutDown		branch if error
          tst   <vopt		verify on?
-         bne   chkeof
+         beq   chkeof
          lbsr  DoVerify
 chkeof   lda   <srcpath		get source path
          ldb   #SS.EOF