changeset 1449:9859ddd89ff8

Fixed bugs in -b option of dsave, modified ChangeLogs sysgo reflects interim version
author boisy
date Thu, 11 Dec 2003 16:37:16 +0000
parents eb5365d81751
children ca5c6be175d3
files defs/releasedefs level1/ChangeLog level1/cmds/dsave.asm level1/modules/sysgo.asm level2/coco3/ChangeLog level2/coco3_6309/ChangeLog
diffstat 6 files changed, 32 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/defs/releasedefs	Thu Dec 11 14:19:57 2003 +0000
+++ b/defs/releasedefs	Thu Dec 11 16:37:16 2003 +0000
@@ -4,4 +4,4 @@
 * NitrOS-9 Version equates
 NOS9Vrsn  equ   3
 NOS9Major equ   2
-NOS9Minor equ   0
+NOS9Minor equ   1
--- a/level1/ChangeLog	Thu Dec 11 14:19:57 2003 +0000
+++ b/level1/ChangeLog	Thu Dec 11 16:37:16 2003 +0000
@@ -1,4 +1,5 @@
 NitrOS-9/6809 Level 1 V03.02.00:
+- Several bugs in dsave's -b option have been fixed.
 - os9 and os9p2 have been renamed to kernel and kernelp2.
 - A new utility, padrom, has been added to the standard commands.
 - Merge now supports -z to get a list of files from standard input.
--- a/level1/cmds/dsave.asm	Thu Dec 11 14:19:57 2003 +0000
+++ b/level1/cmds/dsave.asm	Thu Dec 11 16:37:16 2003 +0000
@@ -3,21 +3,15 @@
 *
 * $Id$
 *
-* Syntax: dsave [<opts>] <destpath>
-* Opts  :
-*   -b = include bootfile (doesn't work)
-*   -i = indent dir levels
-*   -l = only one dir level
-*   -m = omit makdirs
-*   -r = force rewrite on copy
-*   -s = alter copy mem size
-*   -v = verify copied files
-*
 * Edt/Rev  YYYY/MM/DD  Modified by
 * Comment
 * ------------------------------------------------------------------
 *   1      2003/01/11  Boisy G. Pitre
 * Rewrote in assembly language.
+*
+*   1r1    2003/12/11  Boisy G. Pitre
+* Fixed -b option so that it prepends device name in front of os9boot
+* filename.  Also fixed -b= option to work as well.
 
          nam   dsave
          ttl   Multi-file copy utility
@@ -36,7 +30,7 @@
 * Module header definitions
 tylg     set   Prgrm+Objct   
 atrv     set   ReEnt+rev
-rev      set   $00
+rev      set   $01
 edition  set   1
 
          mod   eom,name,tylg,atrv,start,size
@@ -218,18 +212,35 @@
 IsItB    cmpa  #'b		is it this option?
          bne   IsItE		branch if not
          sta   <doboot
+         pshs  x		save for later
          cmpb  #'=		= follows?
          beq   DoEqual
 * -b alone, copy default bootfile name to bbuff
-         pshs  x
+* first, get device name
+         lda   #DIR.+READ.
+         leax  dot,pcr
+         os9   I$Open
+         lbcs  Exit
+         leax  >bbuff,u
+         ldb   #PDELIM
+         stb   ,x+
+         ldb   #SS.DevNm
+         os9   I$GetStt 
+         lbcs  Exit
+         os9   I$Close
+         os9   F$PrsNam
+         lbcs  Exit
+         lda   -1,y
+         anda  #$7F		wipe out hi bit
+         sta   -1,y
+         lda   #PDELIM
+         sta   ,y+
          leax  OS9Boot,pcr
-         leay  bbuff,u
          lbsr  StrCpy
          lda   #C$CR
          sta   ,y
          bra   IsItBEx
-DoEqual  leax  1,x		move X past dash
-         pshs  x
+DoEqual  leax  1,x		move X past '='
          leay  bbuff,u		point to buffer
          lbsr  ParmCpy		copy parameter from X to Y
          lda   #C$CR
@@ -238,6 +249,7 @@
 IsItBLp  sta   ,-x
          cmpx  ,s
          bne   IsItBLp
+         clrb			so FixCmdLn will not look for more opts
 IsItBEx  puls  x
          bra   FixCmdLn
 IsItE    equ   *
--- a/level1/modules/sysgo.asm	Thu Dec 11 14:19:57 2003 +0000
+++ b/level1/modules/sysgo.asm	Thu Dec 11 16:37:16 2003 +0000
@@ -72,7 +72,7 @@
          fcb   C$CR,C$LF
 * For ROM version, cut down on verbage
          IFEQ  ROM
-         fcc   "Release Date: Dec 06, 2003"
+         fcc   "Release Date: Ill 00, 2004"
          fcb   C$CR,C$LF
          fcc   !http://www.nitros9.org!
          fcb   C$CR,C$LF
--- a/level2/coco3/ChangeLog	Thu Dec 11 14:19:57 2003 +0000
+++ b/level2/coco3/ChangeLog	Thu Dec 11 16:37:16 2003 +0000
@@ -1,4 +1,5 @@
 NitrOS-9/6809 Level 2 V03.02.00:
+- Several bugs in dsave's -b option have been fixed.
 - os9p1 and os9p2 have been renamed to kernel and kernelp2, and have
   been back-ported from NitrOS-9/6309 Level 2.
 - windint and grfdrv have been backported from NitrOS-9/6309 Level 2.
--- a/level2/coco3_6309/ChangeLog	Thu Dec 11 14:19:57 2003 +0000
+++ b/level2/coco3_6309/ChangeLog	Thu Dec 11 16:37:16 2003 +0000
@@ -1,4 +1,5 @@
 NitrOS-9/6809 Level 2 V03.02.00:
+- Several bugs in dsave's -b option have been fixed.
 - os9p1 and os9p2 have been renamed to kernel and kernelp2, and have
   been back-ported from NitrOS-9/6309 Level 2.
 - windint and grfdrv have been backported from NitrOS-9/6309 Level 2.