# HG changeset patch # User boisy # Date 1042598707 0 # Node ID b35fcebc8581c4c28f17edbee35d2377b5204678 # Parent 04b393b446cb76e95bceff49ebd333dc44e5d70f Fixed a few bugs diff -r 04b393b446cb -r b35fcebc8581 level1/cmds/touch.asm --- a/level1/cmds/touch.asm Wed Jan 15 02:31:56 2003 +0000 +++ b/level1/cmds/touch.asm Wed Jan 15 02:45:07 2003 +0000 @@ -3,18 +3,11 @@ * * $Id$ * -* Syntax: Touch [] { []} -* Usage : update the date of a file -* Opts : -* -c = don't create files -* -q = don't quit on error -* -x = search execution directory -* -z = get file names from standard input -* -z= get list of file names from -* * Ed. Comments Who YY/MM/DD * ------------------------------------------------------------------ -* 1 Put your development info here BGP 03/01/11 +* 2 Rewrote touch from scratch, made almost 90% BGP 03/01/11 +* smaller than C version found in the OS-9 +* Development System nam Touch ttl Changes last modification date/time @@ -27,13 +20,13 @@ * Here are some tweakable options DOHELP set 1 1 = include help info STCKSIZE set 64 our stack size in bytes -COPTSIZ set 64 max size of C option's parameter +ZOPTSIZ set 64 max size of -z option's parameter * Module header definitions tylg set Prgrm+Objct atrv set ReEnt+rev rev set $01 -edition set 1 +edition set 2 mod eom,name,tylg,atrv,start,size @@ -50,7 +43,7 @@ zoptflg rmb 1 1 = this option has been processed once already zpath rmb 1 path to -z file cleartop equ . everything up to here gets cleared at start -zopt rmb COPTSIZ buffer for what follows after -c= +zopt rmb ZOPTSIZ buffer for what follows after -c= * Next is a user adjustable buffer with # modifier on command line. * Some utilities won't need this, some will. * Currently set up to be larger for Level 2 than Level 1 @@ -79,9 +72,9 @@ fcb C$LF fcc / -x = search execution directory/ fcb C$LF - fcc / -z = get file names from standard input/ + fcc / -z = get files from standard input/ fcb C$LF - fcc / -z= get list of file names from / + fcc / -z= get files from / fcb C$LF CR fcb C$CR HlpMsgL equ *-HlpMsg @@ -90,8 +83,8 @@ UnkOptL equ *-UnkOpt CantTch fcc /can't touch "/ CantTchL equ *-CantTch -EndCant fcc /"/ - fcb C$CR +EndCant fcc /" - / +EndCantL equ *-EndCant * Here's how registers are set when this process is forked: * @@ -128,8 +121,6 @@ leas 2,s else clear stack ENDC puls x,u and restore our earlier saved registers - lda #WRITE. - sta