Search This Blog

Monday, June 28, 2010

Gah, this NWScript compiler is absolutely idiotic.

How to push a constant onto the stack in 4 easy steps:
  1. reserve a spot on the stack for the constant
  2. push the constant on top of the stack
  3. copy the constant to the reserved space
  4. pop the top (pushed in 2) off the stack

No comments: