lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> The luac -l annotation indicates the FORPREP instruction jumps to the PC of the loops FORLOOP instruction when it actually jumps to the instruction following it.

Thanks for the report.

It looks like a bug. It should be this:

   case OP_FORPREP:
        printf("%d %d",a,bx);
        printf(COMMENT "to %d",pc+bx+3);

Perhaps also "exit to %d".