Arcade Prehacks

Results 1 to 8 of 8

Thread: AS3 Bytecodes

  1. #1
    Senior Member
    Join Date
    Sep 2010
    Location
    Programming something else...
    Posts
    894

    AS3 Bytecodes

    Ok, I know that ZuckeR already has a tutorial, but it is outdated and doesn't work anymore. But I know AS3, a tutorial is not what I need. I need to know the list of bytecode for specific operations, such as "pushbyte" (24), or "returnvoid" (47).
    I need to know what the code is for TRUE, I need to unlock some achievements. And I figured that this would be a good place to make an ongoing list of all the codes. I'll start.

    These are what I know.
    Code:
    Input   Opcode     Opcode Hex   Stack (after op)
    1       pushbyte   24 01        1
    2       pushbyte   24 02        2, 1
    4       pushbyte   24 04        4, 2, 1
    *       multiply   a2           8, 1
    +       add        a0           9
    3       pushbyte   24 03        3, 9
    +       add        a0           12
    
    Pushing values directly.
    pushnull       20    (null)
    pushundefined  21    (undefined)
    pushbyte       24 ?? (0 to 127 and -1 to -128)
    pushshort      25    See http://bluecork.net/cheats/short.php for converting values
    pushtrue       26    (true)
    pushfalse      27    (false)
    pushnan        28    (NaN)
    
    Mathematical operands
    add            A0  (+)  Add the last value on the stack to the 2nd last.
    subtract       A1  (-)  Subtracts the last value on the stack from the 2nd last.
    multiply       A2  (*)  Multiplies the last value on the stack with the 2nd last.
    divide         A3  (/)  Devides the 2nd last value on stack by the last.
    negate         90  (-X) Negate the last value on stack.
    increment      91  (++) Adds 1 to the last value on stack.
    decrement      93  (--) Substracts 1 from the last value on stack.
    
    Pushing variables that are saved in the constant pool.
    pushint        2D ??
    pushuint       2E ??
    pushdouble     2F ??
    NVM I found it, but this list could really help some newbies. Keep it going, add your codes that are not already here!
    Note: Make sure that you copy and paste all the code

  2. #2
    Senior Member
    Join Date
    Jun 2010
    Location
    Southern USA
    Posts
    1,221

    Re: AS3 Bytecodes

    Code:
    pushtrue    26
    
    pushfalse    27
    
    pushbyte 125    24 7D
    That's pretty much all I know off the top of my head
    "We're playing in the same sandbox. Why can't we be nice to each other?"

  3. #3
    Senior Member
    Join Date
    Sep 2010
    Location
    Programming something else...
    Posts
    894

    Re: AS3 Bytecodes

    You did it wrong, copy and paste then add to the code, here an example further users use this one.
    Code:
        Input   Opcode     Opcode Hex   Stack (after op)
        1       pushbyte   24 01        1
        2       pushbyte   24 02        2, 1
        4       pushbyte   24 04        4, 2, 1
        *       multiply   a2           8, 1
        +       add        a0           9
        3       pushbyte   24 03        3, 9
        +       add        a0           12
    
        Pushing values directly.
        pushnull       20    (null)
        pushundefined  21    (undefined)
        pushbyte       24 ?? (0 to 127 and -1 to -128)
        pushshort      25    See http://bluecork.net/cheats/short.php for converting values
        pushtrue       26    (true)
        pushfalse      27    (false)
        pushnan        28    (NaN)
    
        Mathematical operands
        add            A0  (+)  Add the last value on the stack to the 2nd last.
        subtract       A1  (-)  Subtracts the last value on the stack from the 2nd last.
        multiply       A2  (*)  Multiplies the last value on the stack with the 2nd last.
        divide         A3  (/)  Devides the 2nd last value on stack by the last.
        negate         90  (-X) Negate the last value on stack.
        increment      91  (++) Adds 1 to the last value on stack.
        decrement      93  (--) Substracts 1 from the last value on stack.
    
        Pushing variables that are saved in the constant pool.
        pushint        2D ??
        pushuint       2E ??
        pushdouble     2F ??
    
    User Added Codes
    pushbyte 125    24 7D

  4. #4
    Senior Member
    Join Date
    Jun 2010
    Location
    Southern USA
    Posts
    1,221

    Re: AS3 Bytecodes

    I got those off the top of my head

    I can't copy and paste those
    "We're playing in the same sandbox. Why can't we be nice to each other?"

  5. #5
    Senior Member
    Join Date
    Sep 2010
    Location
    Programming something else...
    Posts
    894

    Re: AS3 Bytecodes

    What I meant was copy and paste the codes already there, then add yours under the user add codes section...

  6. #6
    Senior Member
    Join Date
    May 2010
    Location
    Pen Island
    Posts
    3,838

    Re: AS3 Bytecodes

    All as3 codes are located here,just an fyi

  7. #7
    Senior Member
    Join Date
    Sep 2010
    Location
    Programming something else...
    Posts
    894

    Re: AS3 Bytecodes

    Yeah, but this way the member can find it directly on the forum, and no, I didn't know that.

  8. #8
    Senior Member
    Join Date
    Jul 2010
    Location
    The Netherlands
    Posts
    1,862

    Re: AS3 Bytecodes

    Thank you for bumping.
    Locked with a verbal warning.
    I've been here before.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •