answersLogoWhite

0


Best Answer

In the 8086/8088 microprocessor, the code segment is used to fetch the opcode and any additional instruction bytes that might be part of the instruction, while the data segment is used to fetch and/or store any operand bytes that the instruction requires to be manipulated.

This is in the case of no segment override prefix.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between code segment and data segment of an instruction?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between operand and opcode?

op code is used as the value of instruction . And operand is address location where the instruction can meet.


Difference between microprocessor and instruction code?

difference between micro operation and microinstruction


Difference between intersegment and intrasegment jump?

Intrasegment jumps are always between statements in the same code segment. Intersegment jumps can transfer control to a statement in a different code segment. Dr Zeeshan


What is difference between code and command?

A code is a set of words or lines made to do most of the task a command is a set of instruction given with authority.


What are the difference between opcode and operand?

What is difference between oppress code and operend


What is the meaning of near and far declaration in microprocessor programming using C?

Programs that are loaded into memory typically have several segments associated with them: the Code Segment (CS), the Stack Segment (SS), the Data Segment (DS), sometimes an Extended Segment (ES), and almost always a Block Started by Symbol (BSS) segment. This question requires that we focus only on the Code Segment (CS). The CS is a segment of memory that contains some of the instructions that are required for the program to execute. If this segment is not large enough to contain the whole program then the program can be loaded into different segments. Such a segment may be 64Kb in size (although the size may differ). Instructions located in these segments are referred to by their offset from the start of the segment, and not by their absolute location in memory. Thus, in order to locate a certain instruction, we need the segment's starting address, and the offset of the instruction in that segment. Whenever a branch (jump, goto) takes place which refers to an instruction that is located in another segment, it is known as a far jump, conversely whenever a jump refers to an instruction that is located in the same segment, it is known as a near jump. The difference referring to the modication of the CS register which contains the address of the current Code Segment for the current running program.


What registers is used to keep track of address of the memory location where the next instruction is located?

Instruction pointer (IP) is used to hold the offset of the next instruction to be fetched for BIU available from Code Segment whose base address is held in CS segment base register..


Which register in 8086 contains the address of the next instruction to be fetched?

program counter holds the address of the next instruction.


How many segment can be directly addressed at a particular time by 8086 microprocessor?

There are four segment registers in the 8086/8088, Code Segment (CS), Stack Segment (SS), Data Segment (DS), and Extra Segment (ES). As a result, there are four segments that can be directly addressed at a particular time, i.e. without an extra instruction to reload a segment register.


What is the difference between near and far procedure in 8086 microprocessor?

Near calls and returns transfer control between procedures in the same code segment. Far calls and returns pass control between different segments.


What is data segment memory and code segment memory?

Code Segment, in which all the application code is stored Data Segment, that holds the global data


What is the basic Difference between flow chart and pseudo-code?

what's the difference between flow chart and structure diagrams and pseudo code