answersLogoWhite

0


Best Answer

i) Instruction code deals only with mnemonics and its corresponding opcode but data code refers to your data like 10h which is always of 8 bits or a particular address say 8080h which is of 16 bits.

ii) Data is your input to the instruction but an opcode is native to your machine.

iii) Data is user specific instruction while opcode is machine specific instruction

iv) You can alter data code but you cannot modify an instruction opcode.

User Avatar

Nikko Gleichner

Lvl 10
2y ago
This answer is:
User Avatar
More answers
User Avatar

anthonymaina

Lvl 2
2y ago

i) Instruction code deals only with mnemonics and its corresponding opcode but data code refers to your data like 10h which is always of 8 bits or a particular address say 8080h which is of 16 bits.

ii) Data is your input to the instruction but an opcode is native to your machine.

iii) Data is user specific instruction while opcode is machine specific instruction

iv) You can alter data code but you cannot modify an instruction opcode.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

The 8085 (sort of) differentiates between data and instructions with the S0 and S1 status pins. Considering IO/M- to be low (memory only), S0 is high on opcode fetch and memory write, and low on memory read, while S1 is high on operand fetch and memory read, and low on memory write. (You need to decode them to see a clear picture.)

However, on a multiple byte instruction, S0 is high only on the first byte, and it is low on subsequent bytes, so it is a bit more difficult to tell the difference. If you really needed to know, you would need to track the memory cycles starting with opcode fetch, knowing the opcode meanings, and noting the immediate instruction bytes as opposed to anything else.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Instruction code deals only with mnemonics and its corresponding opcode but data code refers to your data like 10h which is always of 8 bits or a particular address say 8080h which is of 16 bits.

In short data is your input to the instruction but an instr. is native to your machine.

Data- user specific

instr.-machine specific

you can alter data code but not modify an instruction opcode.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

It doesn't as can be witnessed if you load the wrong value in an instruction address register, the CPU will try to execute anything in the memory space it is looking at.

The only differentiation is at load time. The loader gets the start address for the execution and initializes the CPU to that. After that the code must be proper and not misdirect the CPU.

To the CPU the contents of a byte of memory indistinquishable. It is just program execution and path that keeps the CPU executing code and not data

This answer is:
User Avatar

User Avatar

RAJA KUMAR

Lvl 2
2y ago

(1)Instruction code deals only with mnemonics and its corresponding opcode but data code refers to your data like 10h which is always of 8 bits or a particular address say 8080h which is of 16 bits.

(11) Data is your input to the instruction but an opcode is native to your machine.

  1. Data is user specific instruction while opcode is machine specific instruction

1v) You can alter data code but you cannot modify an instruction opcode.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

opcode is the opration code which is to be perform n oprand can be data or address on which that operation is to be perform by opcode

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How does microprocessor differentiate between data and instruction code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Difference between microprocessor and instruction code?

difference between micro operation and microinstruction


Difference between code segment and data segment of an instruction?

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.


How does the microprocessor work?

Suppose we give a 8-bit instruction ADD B to the microprocessor then this instruction is not at all understood by microprocessor as it only accepts binary inputs so first of all it stores the instruction in the INSTRUCTION REGISTOR then it decodes this instruction ADD B to its suitable binary code 80H in the INSTRUCTION DECODER.. after converting to 80H then the microprocessor understands that .. yes i have to add the content of the resistor B with that of A(accumulator) and store the result in the accumulator A this is a small example how microprocessor operates facing the instructions


What is diffeence between a microprocessor and microprogramed?

Do you mean what is the difference between a microprocessor and microcode? Microcode is an instruction sequencer found in CISC architectures. It's job is to take the machine code and break it down into a sequence (usually steps of 4) to execute things such as indirect register references and other multi-step instructions.


What is function of nop in microprocessor?

The NOP instruction is short for no-operation. It is an executable instruction that does nothing to the processor, its registers, or its flags. It is useful in timing loops, or to provide room for patchabilty of a piece of code.


How does high level language relate to microprocessor instruction set?

Each HLL (High Level Language) instruction is comprised of multiple microprocessor instructions, in a platform-dependent manner. The microprocessor only understands a very simple instruction set, usually on the order of between 30 and 200 instructions (including variants). The most compact processors generally use a RISC architecture (Reduced Instruction Set Computing), which has a fixed size instruction unit and a limited number of instructions (reducing design complexity and power requirements), while Intel uses a richer instruction set (so processors are more complex). The important part about a HLL is that the developer doesn't have to know or understand the microprocessor they are coding for, because their HLL compiler will take care of the details for them. They should at least understand, however, that their HLL code is not executed by the computer directly, but is instead converted into a series of small, single-step instructions that the microprocessor will follow.


When an instruction is executed in a programm what happens in the processor memory?

All the programming instructions whcih are basically in the assembly code has the corresponding hexadecimal code.the microprocessor understand or interprets what this code is and based on that it performs operation for eg HLT which had hexcode 76 the microprocessor understands76 as tha halt instruction and based on that it halts or terminates the program Anand bhat(mca@kiit-870024)


What do Fetch Decode and Execute mean in a microprocessor?

Fetch Decode Execute. This is the cycle that processors will follow. Fetch the Instruction, Decode it into machine code, Execute the commands


How does a high level language relate to the microprocessor's instruction set?

Generally speaking, it doesn't relate at all. If it did, it wouldn't be high-level, it would be machine-dependent. The relationship between the high-level code and the machine-code is ultimately determined by the language translator (compiler and/or interpreter) but, unlike assembly language which maps 1:1 with the microprocessor instruction set, compilers and interpreters are code generators and there is seldom a 1:1 relationship between the high-level source code and the machine code.


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.


What are the applications of decoder?

Decoders are used to analyze data streams for a certain data code and give an output if the data is present like an address to a peripheral unit that needs service. application of decoders as follow microprocessor memory system microprocessor input-output system memory chip microprocessor instruction chip & lots of other application


Why it is necessary to consider the code density when evaluating microprocessor based systems?

Why it is necessary to consider the code density when evaluating microprocessor based systems? A microprocessor usually loafs during normal operation awaiting information from the I/O inputs. However if the internal code is exercised extremely fast then heating will results internally to the microprocessor even causing a catastrophic failure. this is caused rapid code manipulation