CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2011
    Posts
    1

    Instruction encoding

    Is it necessary that the instruction encoding must take 6 bytes to encode & if no can it take more/less than that?

  2. #2
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    Re: Instruction encoding

    Why worry about this at all? It's (most likely) not your job to design the instruction encoding and you can't change it anyway.

    There usually is some reason behind the encoding (of course the opcodes are not picked by throwing darts at a hex table... ) although it isn't directly visible in an assembly/disassembly listing. The Intel Pentium 4 manual (volume 3, document #24143004) I usually consult for questions like this explains the instruction encoding in Appendix A, for instance. (To give you a figure, this appendix comprises 17 pages.)

    Ah, and... Welcome to CodeGuru!
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured