Archive: instructions being skipped


instructions being skipped
I'm at a loss. Compiling my script and running with the command line parameters '/wmh=blah /wmm=foo' causes an invalid opcode error because the Push instruction on line 65 does not get honored. If you add a nop instruction immediately before line 65, the push gets honored, and there is no crash. What's weirder is that if I remove some of my comments, the Push gets honored also.

Also, the "mb1" MessageBox on line 51 does not get displayed but the second MessageBox on line 53 does. There is nothing conditional between lines 51 and 53.

If anybody can tell me what I'm doing wrong, I would really appreciate it. The ParseForSpace function is something I wrote, but I don't know that it can be blamed since the MB strangeness happens before it is called for the first time.

I'm using NSIS 2.14
XPSP2


Some of your comments end with a backslash, including the one before the Push on line 65. This makes the preprocessor treat the next line as the continuation of the comment. That's why line 65 is ignored.


ah, thank you :) I'd thought that everything after the pound symbol would be ignored by the compiler.


After reading about preprocessors, I now understand how dumb I am. Of course the compiler ignores comments, but the preprocesser, which runs before the compiler, does not and honored the "\" at the end of my comment line.


BTW: See GetOptions function


Thanks Instructor. You guys have so many functions/macros/plug-ins that it takes the fun out of making a script :p

But seeing how bad I am at coding, that's a good thing ;)