flat assembler
Message board for the users of flat assembler.

Index > Main > SLDT/STR

Author
Thread Post new topic Reply to topic
Smi13



Joined: 14 Jun 2006
Posts: 2
Smi13
Code:
SLDT EAX ; 0F 00 C0
SLDT AX ; 66 0F 00 C0    


-[Intel manual]
SLDT Ew
STR Ew
-

I think correct form:

Code:
SLDT AX ; 0F 00 C0
SLDT EAX ; Invalid operand    


Same with STR instruction.
Post 13 Oct 2006, 22:00
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7802
Location: Kraków, Poland
Tomasz Grysztar
Try executing them. Compare results.

PS. Check also this.
Post 14 Oct 2006, 07:10
View user's profile Send private message Visit poster's website Reply with quote
Smi13



Joined: 14 Jun 2006
Posts: 2
Smi13
Tomasz Grysztar wrote:
Try executing them. Compare results.
PS. Check also this.


Right, first time i tring with zero register and found no difference.
Intel manual writen too crappy :)

Useful link, i write own assemble/disassemble engine so iteresting in instruction encoding.


Description:
Download
Filename: ADE86-01.ZIP
Filesize: 57.92 KB
Downloaded: 204 Time(s)

Post 14 Oct 2006, 07:57
View user's profile Send private message Visit poster's website Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen
Smi, you probably use some older revision of the manual. The latest revision which I can check now is 019 and it says correctly:
Code:
SLDT Rv/Mw
STR Rv/Mw
    

And there are more instructions with such strange operands.
Post 14 Oct 2006, 09:08
View user's profile Send private message Visit poster's website Reply with quote
Goplat



Joined: 15 Sep 2006
Posts: 181
Goplat
That is odd. Does it really change the whole register even though the LDTR is only 16 bit?
Post 14 Oct 2006, 14:37
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 © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.