Breaking News:

latest

BASIC CONCEPT OF MEMORY

A computer use tow types of storage : man memory memory and secondary memory. The main memory temporarily stores the instructions to be exe...

A computer use tow types of storage : man memory memory and secondary memory. The main memory temporarily stores the instructions to be executed by the computer. The CPU of a computer retrieves instructions from main memory for execution.On the
other hand, secondary memory is constituted of various secondary storage devices such as magnetic disks and magnetic tapes, which stores the information permanently in the form of files.
Main memory, RAM. is the temporary read/write memory of a computer and fasted the secondary storages
devices. Main memory is a set of location defined by sequentially numbered addresses for storing programs for execution, and each location contains a binary number. You can access each byte of RAM directly without reading the previous bytes sequentially.
Each byte in a RAM has an addresses . The addresses are mostly sequential hexadecimal numbers. Usually ,
the addresses of RAM start from 00000.
The memory address that is referred to an instruction can be mentioned in two ways.
 When the exact location of a byte in RAM is mentioned, the addressing scheme is called absolute addressing . The address itself is called on absolute address. For example , the address 5508 indicates a specific location in the RAM, and 5508 is the absolute address of the location.

Similarly , a counter can also be used for location an address. For example, the starting address of a program in memory is 54EE. This address is the root or base address. All the addresses  in this program are relative to the address 54EE such as 8 bytes from the address 54EE The instruction in the program is add the content of the address 3 to the content at address 4. The address, 3 and 4 here are relative and refer to the third and fourth location in the main memory  starting form the root address 54EE. This is called relative addressing and the address itself is called relative address.

No comments