[Help]: Invalid instruction, with #emit
#2

pawn Код:
main()
{
    printf("NON");

    // gets the cip behind this
    #emit LCTRL         6
    // we add 4 bytes for each instruction "ADD.C", "44", "PUSH.C", ...
    // we got 11 instructions to get behind sctrl 6 (11 * 4 = 44)
    #emit ADD.C         44

    #emit PUSH.C        564
    // only one parameter, 4 bytes
    #emit PUSH.C        4
    #emit PUSH.PRI
    #emit CONST.PRI     Func
    #emit SCTRL         6

    printf("NAIN");
}
The Invalid instruction mostly came from returning to the position where 564 is saved, 12 bytes behind your lctrl 6
Reply


Messages In This Thread
[Help]: Invalid instruction, with #emit - by DarkScripter - 22.09.2013, 05:05
AW: [Help]: Invalid instruction, with #emit - by Nero_3D - 22.09.2013, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)