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

Propagation-Radio-Waves

Radio Wave Propagation types

Coding

Binary Coding 1. Binary Coded Decimal (BCD) Binary coded decimal (BCD) is a way to express each of the decimal digits with a binary code. There are only ten code groups in the BCD system, so it is very easy to convert between decimal and BCD. Because welike to read and write in decimal, the BCD code provides an excellent interface to binary systems. Examples of such interfaces are keypad inputs and digital readouts. The 8421 Code: The 8421 code is a type of BCD (binary coded decimal) code. Binary coded decimal means that each decimal digit, 0 through 9, is represented by a binary code of four bits. The designation 8421indicates the binary weights of the four bits 2 3 , 2 2 , 2 1 , 2 0 . The ease  of conversion between 8421 code numbers and the familiar decimal numbers is the main advantage of this code.  All wehave to remember are the ten binary combinations that represent the ten decimal digits as shown in Table 1. The 8421 code is the predominant BCD code, and when we ref

Add