3 updates - asm query, stack modifications, loop removal.

One update allows you to query where the last opcode was written to.  One allows for more modifications to the stack.  The last one just replaces a loop with a constant expression.