flat assembler
Message board for the users of flat assembler.

flat assembler > Compiler Internals > MOV Reg64, [GS:Offset] Bug?

Author
Thread Post new topic Reply to topic
shevmax



Joined: 22 Aug 2016
Posts: 2
Hi! When compiling code:

Code:
USE64 mov rax, [gs:60h]

I received:

Code:
00000000002BF4CE | 65 48 8B 05 9A FF FF FF | mov rax,qword ptr gs:[2BF470]


This is equal of
Code:
mov rax, [gs:RIP-66h]


But I was expecting to receive (without use RIP)
Code:
00000000002BF4D6 | 65 48 8B 04 25 60 00 00 00 | mov rax,qword ptr gs:[60]


It's Bug?
Post 22 Aug 2016, 11:46
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6873
Location: Kraków, Poland
This is explained in the manual, and you can find that excerpt quoted in my response to a related discussion from 2007.
Post 22 Aug 2016, 11:58
View user's profile Send private message Visit poster's website Reply with quote
shevmax



Joined: 22 Aug 2016
Posts: 2
Thanks!
Post 22 Aug 2016, 12:27
View user's profile Send private message 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 © 2004-2018, Tomasz Grysztar.

Powered by rwasa.