Re: Absolute jump without register?
From: Bart Casiero (bart4858_at_freeuk.com)
Date: 03/30/04
- Next message: SenderX: "Re: 64-bit shared counter"
- Previous message: Joe Seigh: "Re: 64-bit shared counter"
- In reply to: Kaelin Colclasure: "Absolute jump without register?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Mar 2004 21:29:55 +0000 (UTC)
"Kaelin Colclasure" <kaelin@bridge.com> wrote in message
news:c464d6$r25$05$1@news.t-online.com...
> Hi :)
>
> I want to to an absolute jump to an address.
> mov edx, 00411A30h
> call edx
>
> My question is now: Can I do this in one instruction without the
> register (or mem)?
> I found the following syntax...
>
> call dword ptr cs:[00411A30h]
Try:
call dword [fnaddr]
....
fnaddr: dd 00411A30H
Ie. store the function address in static memory and call the contents of
that address.
This will do it in one instruction as required; perhaps an extra memory read
but that is required anyway whereever you put the 00411A30H
Bart. C.
.
- Next message: SenderX: "Re: 64-bit shared counter"
- Previous message: Joe Seigh: "Re: 64-bit shared counter"
- In reply to: Kaelin Colclasure: "Absolute jump without register?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]