From c7094139fd4f6b7430078d48f90824b15808394b Mon Sep 17 00:00:00 2001 From: mpohoreski Date: Mon, 27 Feb 2006 15:55:41 +0000 Subject: [PATCH] .10 Added: double forward slash on command line now ignores rest of command (same as C++ comment) --- AppleWin/source/Debugger_Parser.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AppleWin/source/Debugger_Parser.cpp b/AppleWin/source/Debugger_Parser.cpp index 54947b25..154b1fb8 100644 --- a/AppleWin/source/Debugger_Parser.cpp +++ b/AppleWin/source/Debugger_Parser.cpp @@ -549,10 +549,17 @@ int ArgsCook ( const int nArgs ) if (pArg->eToken == TOKEN_FSLASH) // FORWARD SLASH / delta { + if (pNext->eToken == TOKEN_FSLASH) // Comment + { + nArg = iArg - 1; + return nArg; + } if (! ArgsGetImmediateValue( pNext, & nAddressRHS )) { ArgsGetRegisterValue( pNext, & nAddressRHS ); } + if (! nAddressRHS) + nAddressRHS = 1; // divide by zero bug pPrev->nVal1 /= nAddressRHS; pPrev->bType |= TYPE_VALUE; // signal already up to date nParamLen = 2;