flat assembler
Message board for the users of flat assembler.

Index > Main > Mistake of compilation in x64 opcodes.

Author
Thread Post new topic Reply to topic
Garthower



Joined: 21 Apr 2006
Posts: 158
Location: Ukraine
Garthower 13 Sep 2006, 12:00
I have faced such problem, apparently, it is mistake FASM. At attempt to compile a command
Code:
test rcx, 80808080h
    

FASM 1.67.7 gives out error "Value out of range", thus such command exists, its opcode such - db 48h, 0F7h, 0C1h, 80h, 80h, 80h, 80h. At processing a command, for example,
Code:
test rcx, 10808080h
    

FASM fulfils correctly.
Post 13 Sep 2006, 12:00
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8354
Location: Kraków, Poland
Tomasz Grysztar 13 Sep 2006, 13:30
The 32-bit immediate in 64-bit instructions is sign-extended, thus 48-F7-C1-80-80-80-80 is an opcode for "test rcx,0FFFFFFFF80808080h" (or "test rcx,-7F7F7F80h"), not for "test,rcx,80808080h".
Post 13 Sep 2006, 13:30
View user's profile Send private message Visit poster's website Reply with quote
Garthower



Joined: 21 Apr 2006
Posts: 158
Location: Ukraine
Garthower 13 Sep 2006, 13:54
Oh, I have understood, thanks.
Post 13 Sep 2006, 13:54
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 13 Sep 2006, 13:57
if this isn't in FAQ, then it definitively should be....
Post 13 Sep 2006, 13:57
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Garthower



Joined: 21 Apr 2006
Posts: 158
Location: Ukraine
Garthower 13 Sep 2006, 14:12
In FAQ absolutely there is no branch on problems and features x64-86 assembler Sad
Post 13 Sep 2006, 14:12
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 13 Sep 2006, 17:31
it's x86-64 Wink
Post 13 Sep 2006, 17:31
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Garthower



Joined: 21 Apr 2006
Posts: 158
Location: Ukraine
Garthower 14 Sep 2006, 07:33
Yes, yes, x86-64, it's right. But as one my old friend spoke, it is not important as I have told, the main thing, that me have understood Smile
Post 14 Sep 2006, 07:33
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8354
Location: Kraków, Poland
Tomasz Grysztar 14 Sep 2006, 10:21
vid: however which one FAQ did you mean?
Post 14 Sep 2006, 10:21
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 Sep 2006, 11:47
Post 14 Sep 2006, 11:47
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8354
Location: Kraków, Poland
Tomasz Grysztar 14 Sep 2006, 11:55
I'm considering removing it, as the FAQs on this board tend to be better developing.
Post 14 Sep 2006, 11:55
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 Sep 2006, 11:59
well, but seems nobody reads those...
having faq on board is imho too unstandard for most users.

also it's better to have all Qs and As in one file, not to need to load thread for every problem and read all crap there
Post 14 Sep 2006, 11:59
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8354
Location: Kraków, Poland
Tomasz Grysztar 14 Sep 2006, 12:01
So we can write a true FAQ here instead of just collection of links.
Post 14 Sep 2006, 12:01
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 Sep 2006, 12:10
yup... and split that first-read-this into separate thread imho.
Post 14 Sep 2006, 12:10
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8354
Location: Kraków, Poland
Tomasz Grysztar 14 Sep 2006, 12:22
Perhaps it should be just rewritten from scratch. The "Important threads" has alteady taken the role of holding the links.
Post 14 Sep 2006, 12:22
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 Sep 2006, 12:35
yup - without scary long header with lot of confusing letters Wink
Post 14 Sep 2006, 12:35
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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.