x86 Assembly

Moderators: None (Apply to moderate this forum)
Number of threads: 4556
Number of posts: 16011

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
decoding single instruction Posted by vlad777 on 23 Feb 2008 at 4:32 PM
I want to make a function that decodes
any single instruction.

Opcode Instruction Description
89 /r MOV r/m16,r16 Move r16 to r/m16

this is from intels INSTRUCTION SET REFERENCE

So I am wondering is this opcode same for
evry procesor from 8086 to P4
or does for example 386 have diferent opcode
even if the instuction has the same mnemonic
and does the same thing.
In other words do same instructions have diferent opcodes
depending on the processor generation.
I am thinking like there could be an old and a new
version with new processor supporting both.

What other documentation do you recommend.

Thanks.
Report
Re: decoding single instruction Posted by AsmGuru62 on 24 Feb 2008 at 6:01 AM
: I want to make a function that decodes
: any single instruction.
:
: Opcode Instruction Description
: 89 /r MOV r/m16,r16 Move r16 to r/m16
:
: this is from intels INSTRUCTION SET REFERENCE
:
: So I am wondering is this opcode same for
: evry procesor from 8086 to P4
: or does for example 386 have diferent opcode
: even if the instuction has the same mnemonic
: and does the same thing.
: In other words do same instructions have diferent opcodes
: depending on the processor generation.
: I am thinking like there could be an old and a new
: version with new processor supporting both.
:
: What other documentation do you recommend.
:
: Thanks.
:
It should be same opcode for all x86 CPUs. Otherwise old code will not run on a new CPUs.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.