answersLogoWhite

0


Best Answer

In general the only difference between commands, or instructions, and data is the context in which each appears. If the CPU is fetching the contents of memory to get the next instruction, then it assumes that the Program Counter register points to commands. If the CPU is executing an instruction that needs to fetch data from memory, the data at the address specified by the instruction are fetched, assuming that the address points to data.

This is what allows a program to be loaded into memory in the first place; the part of the operation system responsible for this operation treats the program as data, loading it into memory as instructed in the file. Then the OS branches to a specified place within that memory and begins fetching instructions there.

This blurring between instructions and data has also been used in the past to allow a program to modify itself as it executes. This is usually considered poor practice; some operating systems, such as HP's OpenVMS, even set up memory page protections to keep this from happening.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

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

What is a command to the CPU to perform one processing function on one or two data inputs?

An instruction is a command to the CPU to perform one processing function on one or two data inputs.


What does a CPU bus do?

the CPU bus is the connection between the motherboard and the CPU. All data flows through different data bus.


What is difference between data and instruction?

Data is what is saved inside while instructions is what u instruct to do


Does data use the CPU?

The CPU processes data, so data would be using the CPU.


What controls the flow of data between the computer and network cable?

The Network Interface Card (NIC) or modem (Dial-up) controls the flow of data between your computer and the cable.


What is the term for very fast memory used to store data or instructions between the CPU and regular memory?

Very fast memory used to store data or instructions between the CPU and regular memory is called cache.


Where data is stored in CPU?

No data is stored in the CPU. The CPU only performs arithmetic and logical operations. However, the CPU is provided with a small memory unit called cache, which rapidly feeds the CPU with data to calculate.


Data is transmitted between the CPU and L2 cache over what?

The Front Side Bus


Is a measure of the total bandwidth of data moving between the module and the CPU?

PC Rating


Method of transferring data between the hard drive and memory that involves the cpu?

DMA


What is the use of command input?

cpu


Is CPU considered to be data processor?

Data run's through a processor CPU = Core Processing Unit but yes CPU is the same thing as a Processor or ''Data Processor''