Search:

Type: Posts; User: Fordy

Search: Search took 0.06 seconds.

  1. Thread: lea

    by Fordy
    Replies
    13
    Views
    3,294

    The calculations are done by the processor as far...

    The calculations are done by the processor as far as I know...

    Masm interpret's

    lea esi, [esp + 4]

    to be "8D7424 04" - I imagine the 4 on the end is the offset

    and
  2. Thread: lea

    by Fordy
    Replies
    13
    Views
    3,294

    Actually, looking again, if you want to use an...

    Actually, looking again, if you want to use an offset to a register and get an address loaded, LEA is the way to go.

    mov eax, ebp - 8 ;doesnt even assemble......you can;

    mov eax, [ebp -...
  3. Thread: lea

    by Fordy
    Replies
    13
    Views
    3,294

    On assemblers such as MASM you can use both, but...

    On assemblers such as MASM you can use both, but many use the mov method as it's believed to be faster (it may have been at some time....but I dont know about now)
Results 1 to 3 of 3