answersLogoWhite

0


Best Answer

Instruction FormatThe information encoded in an 80386 instruction includes a specification of the operation to be performed, the type of the operands to be manipulated, and the location of these operands. If an operand is located in memory, the instruction must also select, explicitly or implicitly, which of the currently addressable segments contains the operand.

80386 instructions are composed of various elements and have various formats. The exact format of instructions is shown in Appendix B; the elements of instructions are described below. Of these instruction elements, only one, the opcode, is always present. The other elements may or may not be present, depending on the particular operation involved and on the location and type of the operands. The elements of an instruction, in order of occurrence are as follows:

  • Prefixes -- one or more bytes preceding an instruction that modify the operation of the instruction. The following types of prefixes can be used by applications programs:
    1. Segment override -- explicitly specifies which segment register an instruction should use, thereby overriding the default segment-register selection used by the 80386 for that instruction.
    2. Address size -- switches between 32-bit and 16-bit address generation.
    3. Operand size -- switches between 32-bit and 16-bit operands.
    4. Repeat -- used with a string instruction to cause the instruction to act on each element of the string.
  • Opcode -- specifies the operation performed by the instruction. Some operations have several different opcodes, each specifying a different variant of the operation.
  • Register specifier -- an instruction may specify one or two register operands. Register specifiers may occur either in the same byte as the opcode or in the same byte as the addressing-mode specifier.
  • Addressing-mode specifier -- when present, specifies whether an operand is a register or memory location; if in memory, specifies whether a displacement, a base register, an index register, and scaling are to be used.
  • SIB (scale, index, base) byte -- when the addressing-mode specifier indicates that an index register will be used to compute the address of an operand, an SIB byte is included in the instruction to encode the base register, the index register, and a scaling factor.
  • Displacement -- when the addressing-mode specifier indicates that a displacement will be used to compute the address of an operand, the displacement is encoded in the instruction. A displacement is a signed integer of 32, 16, or eight bits. The eight-bit form is used in the common case when the displacement is sufficiently small. The processor extends an eight-bit displacement to 16 or 32 bits, taking into account the sign.
  • Immediate operand -- when present, directly provides the value of an operand of the instruction. Immediate operands may be 8, 16, or 32 bits wide. In cases where an eight-bit immediate operand is combined in some way with a 16- or 32-bit operand, the processor automatically extends the size of the eight-bit operand, taking into account the sign.
User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Explain different parts of an instruction format?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a chilton manuel?

It's an automotive instruction/parts/description manual. They are produced for many different vehicles


Can liberalism realism and constructivism explain the Cold War and its different parts?

Liberalism emphasizes economic interdependence and the role of institutions in promoting peace, highlighting how economic factors influenced interactions during the Cold War. Realism focuses on power struggles between states, showcasing how competition between the US and USSR led to arms races and proxy wars. Constructivism highlights the role of ideas, norms, and beliefs in shaping behavior, demonstrating how opposing ideologies of capitalism and communism fueled the conflict.


How do you divide rectangle into 4 equal parts in 5 different ways?

In complete sentnces, explain why you can cut the rectangles into different shapes and still have four equal parts.


The french culture has an impact on different parts of north America such as the province of quebec and the state of Louisiana based on what you know how would you explain this?

the French culture has an impact on the different parts of north America such as the province of Québec and the state of Louisiana. based on which you know how would you explain this.


Describe and explain what happens to the piece of wooden splint when it is placed in the different parts of the Bunsen flame?

It burns


What are various instruction formats in 8085 microprocessor?

An instruction is a command for any given task. There are two parts to each instruction; one giving the command and two the operand.


How does physics explain the nature of matter?

There are several theories that explain different aspects of our Universe. The single most important statement that physics makes (according to Feynmann) is the fact that matter is made up of atoms. Different parts of physics explain different aspects of the world; for example, quantum mechanics explains several important aspects.


What are three parts of the block style format?

Heading, Body, and Closing


Which are the three parts of the block style format?

Heading, body, and closing


How do you format a document in three columns?

If you want to format the entire document, click on Select All. If you want to format only part of the document, highlight the section you want to format. From the format menu, select column, then choose three columns. Click OK and observe the new format.


What are the different parts of an ordinance?

title preamble - sort of introduction or preface; purpose is to explain the reasons for the enactment (of a law) and the objects sought to be attained. enacting clause - tells who the authors are body effectivity clause these are the parts of a law. looking at different ordinances, i think their parts are the same as laws'


Engine removal and install for a ford escort zx2 yr. 2000step by step instruction?

This you need to get a Haynes Manual for your car. It's about $20 at the auto parts house. It will explain step by step procedure and will have pictures. It is beyond the scope of this forum to go into it.