flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > bug?

Author
Thread Post new topic Reply to topic
Octavio



Joined: 21 Jun 2003
Posts: 366
Location: Spain
Octavio 18 Apr 2005, 16:10
amd 3dnow instructions like

pavgusb mm1,mm2 ;db 0fh,0fh,0cah,0bfh

are encoded with the modrm byte (0cah) before the opcode byte (0bfh)
i haven´t tested if this works but usually opcode byte is before modrm.
I have assembled it with fasm1.46 and fasm1.59
Post 18 Apr 2005, 16:10
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 18 Apr 2005, 16:28
mikael "fluff" klasson's hexit assembles it as 0f0fcabf, too...
Post 18 Apr 2005, 16:28
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 18 Apr 2005, 22:57
The third opcode byte for AMD 3DNow! is really an immediate byte for the instruction 0Fh-0Fh, and therefore comes last.
Post 18 Apr 2005, 22:57
View user's profile Send private message Visit poster's website Reply with quote
Octavio



Joined: 21 Jun 2003
Posts: 366
Location: Spain
Octavio 18 Apr 2005, 23:56
Privalov wrote:
The third opcode byte for AMD 3DNow! is really an immediate byte for the instruction 0Fh-0Fh, and therefore comes last.

thanks for the explanations ,the amd docs i have are really a data shit Evil or Very Mad
Please can someone tellme where to download the latest instructions sets for intel and amd.
Post 18 Apr 2005, 23:56
View user's profile Send private message Visit poster's website Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen 19 Apr 2005, 07:59
Post 19 Apr 2005, 07:59
View user's profile Send private message Visit poster's website Reply with quote
Octavio



Joined: 21 Jun 2003
Posts: 366
Location: Spain
Octavio 19 Apr 2005, 16:27
Thanks
Post 19 Apr 2005, 16:27
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.