From: Andrew Jarvis on
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


From: Theo on
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:
> 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
>
>