answersLogoWhite

0

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

10y ago

What else can I help you with?

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.


Does data use the CPU?

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


What is difference between data and instruction?

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


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 two primary types of bus lines on the motherboard run between the CPU and the RAM sockets?

The two primary types of bus lines on the motherboard that run between the CPU and the RAM sockets are the address bus and the data bus. The address bus is responsible for carrying the addresses of the data being accessed, allowing the CPU to specify which memory location it wants to read from or write to. The data bus, on the other hand, transfers the actual data between the CPU and the RAM. Together, these buses facilitate communication and data exchange between these critical components.


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.


How does the CPU interface coordinate the transfer?

The CPU interface coordinates data transfer through a combination of control signals, data buses, and address buses. Control signals dictate when data should be sent or received, while the data bus carries the actual data between the CPU and other components, such as memory or I/O devices. The address bus specifies the memory location or device involved in the transfer. This coordinated effort ensures that data flows smoothly and accurately between the CPU and other system components.


What is the use of command input?

cpu


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

The Front Side Bus


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

DMA


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

PC Rating