Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: General » microsoft.public.windows.64bit.general
Thread: MASM64 jump table

HTVi
TV Discussion Newsgroups

MASM64 jump table
"Andrew Jarvis" <someone[ at ]somewhere> 4/16/2007 4:01:01 PM
My 32 bit assembler code contained the following:

jmp [dispatch+ecx*4]

dispatch:
DD label1
DD label2

To assemble with MASM64, I have changed this to:

jmp [dispatch+rcx*8]

dispatch:
DQ label1
DQ label2

The linker produces "error LNK2017: 'ADDR32' relocation to 'dispatch'
invalid without /LARGEADDRESSAWARE:NO"

Is it possible to set up a jump table like this using EM64T?

Regards,
Andrew


Re: MASM64 jump table
Theo <theo[ at ]discussions.microsoft.com> 4/16/2007 4:43:15 PM
I think you would be in better company for your question if
you posted in the MASM group at: microsoft.public.masm

This is primarily a users forum and not highly geared toward
the programing side. The MASM grpoup is specifically for
Microsoft Assembler and I would suspect a lot of experienced
programmers hang out there.



Andrew Jarvis wrote:
[Quoted Text]
> My 32 bit assembler code contained the following:
>
> jmp [dispatch+ecx*4]
>
> dispatch:
> DD label1
> DD label2
>
> To assemble with MASM64, I have changed this to:
>
> jmp [dispatch+rcx*8]
>
> dispatch:
> DQ label1
> DQ label2
>
> The linker produces "error LNK2017: 'ADDR32' relocation to 'dispatch'
> invalid without /LARGEADDRESSAWARE:NO"
>
> Is it possible to set up a jump table like this using EM64T?
>
> Regards,
> Andrew
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen