# HG changeset patch # User boisy # Date 1043527798 0 # Node ID 9a075092f6cef56e4160e13011387d16f7f6206a # Parent c8489e2f382deae0163ac79c23ce8cb944905f81 -b now working closer to original dsave, but BuildOS9Gen routine still needs work diff -r c8489e2f382d -r 9a075092f6ce level1/cmds/dsave.asm --- a/level1/cmds/dsave.asm Fri Jan 24 21:43:13 2003 +0000 +++ b/level1/cmds/dsave.asm Sat Jan 25 20:49:58 2003 +0000 @@ -6,7 +6,6 @@ * Syntax: dsave [] * Opts : * -b = include bootfile (doesn't work) -* -e = execute files * -i = indent dir levels * -l = only one dir level * -m = omit makdirs @@ -47,8 +46,8 @@ bufptr rmb 2 pointer to user expandable buffer bufsiz rmb 2 size of user expandable buffer * These vars are used for this example, it will probably change for you -dirlevel rmb 1 current directory level -doexec rmb 1 execute flag +dirlevel rmb 1 current directory level (0 = top) +*doexec rmb 1 execute flag errcode rmb 1 error code storage plistcnt rmb 1 command line pathlist count doboot rmb 1 @@ -61,12 +60,15 @@ dstpath rmb 2 pointer to second (optional) pathlist on cmd line lineptr rmb 2 sopt rmb 1 +ddbt rmb 3 copy of source disk's DD.BT from LSN0 * vars for pwd integrated code fildes rmb 1 srcptr rmb 2 dotdotfd rmb 3 LSN of .. dotfd rmb 3 LSN of . ddcopy rmb 3 +bootlen rmb 2 length of param after -b= +bbuff rmb 64 -b= buffer dentry rmb DIR.SZ*2 srcpath rmb 128 buffend rmb 1 @@ -103,7 +105,7 @@ UnkOptL equ *-UnkOpt ShlEko fcc "t" - fcb C$CR +CR fcb C$CR Chd fcc "chd" fcb C$CR @@ -130,7 +132,10 @@ Copy fcc "copy" fcb C$CR -OS9Boot fcc "OS9BOOT " +OS9Gen fcc "os9gen" + fcb C$CR + +OS9Boot fcs "OS9BOOT" DotDot fcc "." Dot fcc "." @@ -212,11 +217,26 @@ IsItB cmpa #'b is it this option? bne IsItE branch if not sta buffend,u point X to buffer