NASM and push byte, ret; ret 4; ret 16

From: Ro (inp_out_at_sim.tim)
Date: 03/29/04

  • Next message: GodSmack: "Re: newbe about API"
    Date: Mon, 29 Mar 2004 11:05:54 GMT
    
    

    What is the difference between
    push 88; and push byte 88; push word 88;
    in NASM, in 32 BIT code? And in 16 bit code?
    I would image that what push is always 32 bits in 32 bits code; 16
    bits in 16 bit code.

    what are the instructions equivalent to ret, ret 0, ret 4
    ret num?
    Are there
    ret x <=> {add esp, x + 4; jmp dword [ esp - (x + 4) ] }
    ?
    Thanks


  • Next message: GodSmack: "Re: newbe about API"

    Relevant Pages