flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > add qword [RSP*4+R15], 0x11

Author
Thread Post new topic Reply to topic
kandamun



Joined: 20 Jul 2005
Posts: 25
kandamun
Is this a bug ?

Code:
format PE64

add qword [RSP*4+R15], 11h
nop
    


the generated bytes are : 49 83 04 A7 11 90
But add dword [ESP*4+EBX],11h gives "Error: invalid address"
As far as I know ESP/RSP cannot be used as index register.
I'm not sure about RSP in 64-bit mode.
At least one 64-bit disassemlers gives the result :
49 83 04 A7 11 90 = add qword [R15], 11h
Post 09 Mar 2006, 21:21
View user's profile Send private message ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
Fixed.
Post 09 Mar 2006, 21:49
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.