flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Compiler Internals > invalid address with mpx instruction

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 210
Location: film "CandyMan" directed through Bernard Rose
invalid address with mpx instruction

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
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland

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: 210
Location: film "CandyMan" directed through Bernard Rose
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: 14789
Location: Lost in translation

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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.