Skip to main content

300x250 Ads

General purpose of registers


 

General purpose of registers:

General purpose registers are basically used to hold temporarily data and intermediately result.
example: ax,bx,cx,dx each of 16 bits. whereas special purpose register are primly used for memory access.

It is of two types:

 1. segment register and 

2. index register/ pointer



Data Segment: (DS) is a 16-bit register containing address of 64KBsegment with program data. By default, the processor assumes that all data referenced by general registers (AX, BX, CX, DX) and index register (SI, DI)is located in the data segment. DS register can be changed directly using POP and LDS instructions.

Code segment: (CS) is a 16-bit register containing address of 64 KB
segment with processor instructions. The processor uses CS segment for all
accesses to instructions referenced by instruction pointer (IP) register. CS
register cannot be changed directly. The CS register is automatically updated
during far jump, far call and far return instructions.


Role of segment register:
In the In the x86 processor architecture, memory addresses are
specified in two parts called the segment and the offset.
One usually thinks of the segment as specifying the
beginning of a block of memory allocated by the system and
the offset as an index into it. Segment values are stored
in the segment registers. There are four or more segment
registers: CS contains the segment of the current
instruction (IP is the offset), SS contains the stack
segment (SP is the offset), DS is the segment used by
default for most data operations, ES (and, in more recent
Processors, FS and GS) is an extra segment register. Most memory operations accept a segment override prefix that allows use of a segment register other than the default one.

Purpose of segment register of
microprocessor:

The segment register in the 80806/8088 microprocessor contains the base address (divided by 16) of a region of memory. Since the register is 16 bits in size, there are 65,536 possible segment base
addresses, ranging from 00000H to FFFF0H, in increments of 00010H.
After address translation at the instruction level, the generated 16 bit offset is added to the selected segment register times 16 to generate a physical address between 00000H and FFFFFH. (If the offset and base go past FFFFFH, they wrap around back to 00000H.) Since the offset is also 16 bits in size, and since the overlap is only 4 bits (times 16), then each 64 kb segment overlaps by 16 bytes.
There are four segment registers; CS, DS, ES, and SS, standing for Code Segment, Data Segment, Extra Segment, and Stack Segment.
CS is used for opcode fetches. DS is used for normal data. ES is used for certain string operations as the destination address. SS is used for stack and frame (BP) data.
The segment registers can be implicitly selected by context, or they can be explicitly selected with a  segment prefix opcode.

Comments

Popular posts from this blog

Armature Winding ,Pole Pitch, Coil Span, Commutator Pitch

Now we are going to discuss about armature winding in details. Before going through this section, we should understand some basic terms related to armature winding of dc generator . Pole Pitch Definition of Pole Pitch The pole pitch is defined as peripheral distance between center of two adjacent poles in dc machine. This distance is measured in term of armature slots or armature conductor come between two adjacent pole centers. This is naturally equal to the total number of armature slots divided by number of poles in the machine. If there are 96 slots on the armature periphery and 4 numbers of poles in the machine, the numbers of armature slots come between two adjacent poles centers would be 96/4 = 24. Hence, the pole pitch of that dc machine would be 24. As it is seen that, pole pitch is equal to total numbers of armature slots divided by total numbers of poles, this can alternatively referred as armature slots per pole . Coil Span or Coil Pitch Coil of ...

Transformer

 A transformer is a static electrical device that transfers energy by inductive coupling between its winding circuits. The transformer is one of the simplest of electrical devices. Its basic design, materials, and principles have changed little over the last one hundred years, yet transformer designs and materials continue to be improved. Transformers are essential in high voltage power transmission providing an economical means of transmitting power over large distances. The simplicity, reliability, and economy of conversion of voltages by transformers was the principal factor in the selection of alternating current power transmission in the "War of Currents" in the late 1880's. In electronic circuitry, new methods of circuit design have replaced some of the applications of transformers, but electronic technology has also developed new transformer designs and applications. Transformers come in a range of sizes from a thumbnail-sized coupling transfo...

Principles of Electronics

 Principles of Electronics  By- V.K. Mehta, Rohit Mehta  

Add