changeset 854:053078ef1289

Made some adjustments
author boisy
date Wed, 15 Jan 2003 01:59:57 +0000
parents 5077ffa665a3
children ff3262e34cf6
files level1/cmds/ngu.asm
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/level1/cmds/ngu.asm	Wed Jan 15 00:57:29 2003 +0000
+++ b/level1/cmds/ngu.asm	Wed Jan 15 01:59:57 2003 +0000
@@ -158,8 +158,14 @@
 
 * At this point we have determined our buffer space and saved pointers
 * for later use.  Now we will parse the command line for options that
-* begin with -
-         lbsr  SkipSpcs         move past any spaces on command line
+* begin with a dash.
+* Note that X will NOT point to a space, but to either a CR (if no
+* parameters were passed) or the first non-space character of the
+* parameter.
+* Here we merely grab the byte at X into A and test for end of line,
+* exiting if so.  Utilities that don't require non-option arguments
+* should comment out the following three lines.
+         lda   ,x         	get first char
          cmpa  #C$CR		CR?
          lbeq  ShowHelp		if so, no parameters... show help and exit
 GetChar  lda   ,x+		get next character on cmd line