文档详情

Intel微机原理第2章(微处理器与其结构)-2.ppt

发布:2017-06-29约2.77千字共40页下载文档
文本预览下载声明
The Microprocessor;1 . 编程结构(8086);程序员可见寄存器 visible registers;;誓滇帛该肆汁猖恬巧问巨汗闻舒氖忱谁耪邻傍名佣签城耍拂廖散呆锗锰迅Intel微机原理第2章(微处理器与其结构)-2Intel微机原理第2章(微处理器与其结构)-2;扩展标志寄存器 EFLAGS; ;286和386以上标志位;IA-32 Memory Management In Real-address mode ,only 1MB of memory can be addressed,from 00000 to FFFFF.The processor can run only one program at a time. In Protected mode,the processor can run multiple programs at the same time.It assigns each process(running program) a total of 4GB of memory. In Virtual-8086 mode,the computer runs in Protect mode and creates a virtual 8086 machine with own 1MB address space that simulates an 80X86 computer running in real-address mode.Some MS-DOS programs that make direct references to computer hardware will not run in this mode under Windows NT and 2000.;486和Pentium以上标志位;2.实模式存储器寻址 Real Mode;段寄存器;存储器地址的分段;8086以上16位段寄存器和偏移寄存器 Default Segment-Offset Register;80386以上32位段寄存器和偏移寄存器 Default Segment-Offset Register;保护模式存储器寻址 Protected Mode; ;选择符(Selector);全局描述符表、局部描述符表、中断描述符表;Explanation #GDTR(Global Descriptor Table Register--全局描述符表寄存器)包含描述符表基地址和界限(最大64KB,16位)。一旦进入保护工作模式时,应装入GDTR(指令LGDT QWORD PTR SRC---48位,高双字为段基地址,低字为段界限) #IDTR(Interrupt Descriptor Table Register--中断描述符表寄存器),在使用保护工作模式时,应初始化。由此指向中断描述符表,与GDTR类似。;TR LDTR;#LDTR(Local Descriptor Table Register--局部描述符表寄存器),局部描述符表的位置从全局描述符表中得到(由GDTR描述),对于具体的位置,将选择子装入LDTR(LLDT WORD PTR SRC,如同段寄存器),从而将基地址等装入对应的高速缓存。 ; Example ?GDTR利用结构类型定义伪描述符: PDESC STRUC LIMIT DW 0 BASE DD 0 PDESC ENDS ? Define GDT in data segment: VGDTR PDESC 〈0FFFFH〉 Table length is 64KB,Base address is. ? Load instruction: LGDT QWORD PTR VGDTR;段描述符(Segment Descriptor); ; ;Segment Descriptors: Access Rights (Byte 5):;P.60 Example ;描述符的结构类型表述 DESCRIPTOR STRUC LIMITL DW 0 BASEL DW 0 BASEM DB 0 ATTRIBUTES DW 0 BASEH DB 0 DESCRIPTOR ENDS;描述符的结构类型表述例 DATAS DESCRIPTOR 〈0FFFFH,0,10H,0F2H,0〉 得
显示全部
相似文档