| Electronic Components Datasheet Search |
|
GXM Datasheet(PDF) 42 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
GXM Datasheet(HTML) 42 Page - National Semiconductor (TI) |
|
42 / 244 page ![]() www.national.com 42 Revision 3.1 Processor Programming (Continued) 3.3.1.2 Segment Registers The 16-bit segment registers, part of the main memory addressing mechanism, are described in Section 3.5 “Off- set, Segment, and Paging Mechanisms” on page 61. The six segment registers are: CS - Code Segment DS - Data Segment SS - Stack Segment ES - Extra Segment FS - Additional Data Segment GS - Additional Data Segment The segment registers are used to select segments in main memory. A segment acts as private memory for dif- ferent elements of a program such as code space, data space, and stack space. There are two segment mechanisms, one for real and vir- tual 8086 operating modes and one for protective mode. Initialization and transition to protective mode is described in Section 3.13.4 “Initialization and Transition to Protected Mode” on page 87. The segment mechanisms are described in Section 3.7 “Descriptors and Segment Mech- anisms” on page 62. The active segment register is selected according to the ruleslistedinTable 3-3and thetypeofinstruction being currently processed. In general, the DS register selector is used for data references. Stack references use the SS register, and instruction fetches use the CS register. While some of these selections may be overridden, instruction fetches, stack operations, and the destination write opera- tion of string operations cannot be overridden. Special segment-override instruction prefixes allow the use of alternate segment registers. These segment registers include the ES, FS, and GS registers. 3.3.1.3 Instruction Pointer Register The Instruction Pointer (EIP) Register contains the off- set into the current code segment of the next instruction to be executed. The register is normally incremented by the length of the current instruction with each instruction exe- cution unless it is implicitly modified through an interrupt, exception, or an instruction that changes the sequential execution flow (for example JMP and CALL). Table 3-3 illustrates the code segment selection rules. Table 3-3. Segment Register Selection Rules Type of Memory Reference Implied (Default) Segment Segment-Override Prefix Code Fetch CS None Destination of PUSH, PUSHF, INT, CALL, PUSHA instructions SS None Source of POP, POPA, POPF, IRET, RET instructions SS None Destination of STOS, MOVS, REP STOS, REP MOVS instructions ES None Other data references with effective address using base registers of: EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP DS SS CS,ES, FS,GS, SS CS, DS, ES, FS, GS |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |