flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > invalid address with mpx instruction

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 413
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 14 Jun 2016, 15:55
Code:
use64
bndldx bnd0,[rbx+16] ;fine
bndldx bnd0,[ebx+16] ;invalid address    

_________________
smaller is better
Post 14 Jun 2016, 15:55
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 14 Jun 2016, 17:19
Intel® Architecture Instruction Set Extensions Programming Reference, 319433-015 (July 2013) wrote:
In 64-bit Mode, all Intel MPX instructions use 64-bit operands for bounds and 64 bit addressing, i.e. REX.W & 67H have no effect on data or address size.
It's in the section "9.3.10 Intel MPX and Operating Modes".
Post 14 Jun 2016, 17:19
View user's profile Send private message Visit poster's website Reply with quote
CandyMan



Joined: 04 Sep 2009
Posts: 413
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 14 Jun 2016, 17:57
I leaned on nasm which 0x67 prefix allows...

_________________
smaller is better
Post 14 Jun 2016, 17:57
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 15 Jun 2016, 01:29
CandyMan wrote:
I leaned on nasm which 0x67 prefix allows...
NASM has many things that it doesn't do properly. The source manuals are the place to go when one wants to be sure of something.
Post 15 Jun 2016, 01:29
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.