mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-02-08 08:30:46 +00:00
.10 Added: double forward slash on command line now ignores rest of command (same as C++ comment)
This commit is contained in:
parent
a6a270a2d3
commit
c7094139fd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user