CPU register is faster than memory loacations
Simple answer - speed. By using the CPU register, the information is kept "local" to the CPU. By storing a value in a memory location, a lookup has to be performed to retrieve it.
registers are a small high-speed memory inside CPU. one advantage of using them is increase in CPU speed because of their high access rate in comparison by ram.
A 14 bit address can specify 214 or 16,384 different locations.
In the 8086 microprocessor, register indirect addressing mode is a method of accessing data in memory using a register to hold the address of the data. In this mode, the effective address of the operand is provided by a register, such as BX, SI, or DI. This allows for flexible data manipulation, as the contents of the register can be easily modified to point to different memory locations. This addressing mode is particularly useful for operations on arrays and data structures.
Virtual memory is used to increase the size of working memory in the system main memory by using the locations in secondary storage such as harddisk.
168
In order to interface more than 64K of memory using the 085, you would need an external address register, perhaps maintained by the 8255, which contained an offset register for part of the memory address space. This would be similar to how the 8086/8088 processors implemented expanded memory before using the 80386 and above processors.
An indirect address is an address contained in a register or memory location, instead of in the instruction itself. In the 8085, the most common form is to load or calculate an address in the HL register, and then access the memory pointed to by HL using the M register designation, such as MOV A,M.
Dyanmic memory allocation ... we can easily manipulate the data
Asks the compiler to devote a processor register to this variable in order to speed the program's execution. The compiler may not comply and the variable looses it contents and identity when the function it which it is defined terminates.
Ans: In the register addressing mode the operands are in registers which reside within the CPU. Register-mode instructions are 1-byte instructions and can be executed within the CPU without the need to reference memory for operands. But in the Register-indirect addressing mode the instruction specifies a register or a pair of registers in the processor whose contains give the address of the operand in memory. This mode uses 1-byte instructions even though the operand is in memory. Before using a register-indirect mode instruction, the programmer must ensure that the address of the operand is placed in the processor register with a previous transfer-type instruction. A reference to the register is then equivalent to specifying a memory address.
The data segment register (DS) is a critical component in the architecture of x86 processors, primarily used to point to the segment of memory that contains data. It helps manage memory by allowing the CPU to access a specific area of memory where variables and data structures are stored. By using the DS, the processor can efficiently read from and write to the data segment, facilitating organized memory access in segmented memory models.