收藏 分销(赏)

计算机组成原理与汇编语言复习资料.doc

上传人:天**** 文档编号:4314124 上传时间:2024-09-05 格式:DOC 页数:9 大小:133KB
下载 相关 举报
计算机组成原理与汇编语言复习资料.doc_第1页
第1页 / 共9页
计算机组成原理与汇编语言复习资料.doc_第2页
第2页 / 共9页
计算机组成原理与汇编语言复习资料.doc_第3页
第3页 / 共9页
计算机组成原理与汇编语言复习资料.doc_第4页
第4页 / 共9页
计算机组成原理与汇编语言复习资料.doc_第5页
第5页 / 共9页
点击查看更多>>
资源描述

1、ocusing on ways and means of improving and upgrading work, further development of three to split. (A) fully grasp no unauthorised created. The township no unauthorised created the existing building one household, one document survey and file storage work must be unconditional and full coverage. Main

2、 corridor leading to the town (road, river) village, the Central built-up area of the town on both sides must be to create a no unauthorised village. According to five hundred villages created and shanty towns, villages, old houses, reconstruction of old plant, expand create, upgrading creates files

3、, the real no unauthorised village created into the benefit of the people of very good thing. (B) to strictly manage count as unauthorised controls. Promoting the new control work to move the center of gravity, management measures to the front, and earnestly pipes effectively. A strict new unauthori

4、sed network responsibility. Sectors such as land, housing and basic stations (stations) and the Township of grid accountability mechanisms must be strictly in accordance with the new regulatory requirements, effective implementation of the area of responsibility of the new inspections, suppression,

5、demolition work to ensure that the new zero tolerance. Second, public security, water, electricity, water, oceans and fisheries, tourism collaboration, market supervision departments should strictly enforce the illegal construction of disposal of relevant provisions of the regulations, effective ful

6、filment of responsibilities, particularly in electricity and water supply, and other units may not be new illegal buildings to supply water and electricity supply. While more regulation to prevent personal privacy violations. Illicit trading in illegal construction in the Ministry of public security

7、 sector to strictly from the blow. Three is to create additional offence reporting system of incentives. According to building law and covers an area of nature, to report timely degree divided report grade, effective after the removal of certain incentives. (C) integrated implementation , building d

8、emolition, modification, use combination. Demolition is the means and purpose built is. To adhere to the building demolished, combination of construction and demolition waste, demolished with combined efforts to improve the scientific level of three to split; second, we must pay attention to three t

9、o split and five hundred and five water treatment, three of the four sides, the shackDistrict transformation, and dangerous old room transformation and two road sides, series work organic combined up, active do River, and along demolition work, and manpower advance village in the, and old residentia

10、l demolition work, to improved masses housing conditions and live environment; three to put three modified a split as traditional low, and small, and bulk industry structure transformation upgrade of important initiatives to caught, speed up advance industry Park, effective optimization park environ

11、ment一、单项选择题1、下列数中最大的数是( C )A、()2 B、(142)8 C、(82)16 D、()BCD2、一个完整的计算机系统应包括( D )A、运算器、存储器、控制器 B、主机和外部设备C、主机与应用程序 D、配套的硬件设备和软件系统3、PSW是指令部件中( D )A、指令寄存器 B、指令译码器 C、程序计数器 D、程序状态寄存器4、8086/8088CPU中,用来存放程序的指令代码段的寄存器是(A )A、CS B、DS C、SS D、ES5、主存储器和CPU之间增加高速缓冲器的主要目的是( B )A、扩大主存储器容量 B、解决主存与CPU之间速度匹配问题C、扩大CPU通用寄存

12、器数量 D、既扩大主存容量又提高主存速度6、使CPU与I/0设备完全并行工作方式是( C )方式。A、程序直接传送 B、中断 C、通道 D、程序查询7、8086系统中,当某一存储单元的逻辑地址为2300H:0075H时,其对应的物理地址为(D)A、2300H B、0075H C、23750H D、23075H8、在CPU中跟踪下一条指令地址的寄存器( C )A、主存地址寄存器 B、指令寄存器 C、指令计数器 D、状态条件寄存器9、冯.诺依曼机的基本特征是( B )A、微程序控制 B、存贮程序控制 C、组合逻辑控制 D、间步控制10接口是( B )的逻辑部件。ACPU与系统总线之间 B系统总线与

13、IO设备之间C主存与I/O设备之间 D运算器与IO设备之间11.在做加法时,D7为有进位且结果为正,则标志位CF和SF为(C)A. 0和0B. 0和1C. 1和0D. 1和1 12. 运算器的核心部分是(D)A. 通用寄存器 B. 暂存器C. 缓存器 D. 运算逻辑单元13. 中断是( C )A. 子程序调用B. 确定性的C. 随机发生的 D. 多道程序14需要进行刷新的存储器是( B )。ASRAM BDRAMCROM DEPROM15接口是( B )的逻辑部件。ACPU与系统总线之间 B系统总线与IO设备之间C主存与I/O设备之间 D运算器与IO设备之间二、简答题1.什么是总线?采用总线的

14、优点是什么?三总线结构是指什么?所谓总线,是连接多个功能部件或多个装置的一组公共信号线。按在系统中的不同位置,总线可以分为内部总线和外部总线。内部总线是CPU内部各功能部件和寄存器之间的连线;外部总线是连接系统的总线,即连接CPU、存储器和I/O接口的总线,又称为系统总线。微型计算机采用了总线结构后,系统中各功能部件之间的相互关系变为各个部件面向总线的单一关系。一个部件只要符合总线标准,就可以连接到采用这种总线标准的系统中,使系统的功能可以很方便地得以发展,微型机中目前主要采用的外部总线标准有:PC总线,ISA总线,VESA总线等。按所传送信息的不同类型,总线可以分为数据总线DB(Data B

15、us)、地址总线AB(Address Bus)和控制总线CB(Control Bus)三种类型,通常称微型计算机采用三总线结构。2、叙述累加器和算术逻辑运算部件在微处理器中的作用累加器和算术逻辑运算部件主要用来完成数据的算术和逻辑运算。ALU有2个输入端和2个输出端,其中一端接至累加器,接收由累加器送来的一个操作数;另一端通过数据总线接到寄存器阵列,以接收第二个操作数。参加运算的操作数在ALU中进行规定的操作运算,运算结束后,一方面将结果送至累加器,同时将操作结果的特征状态送标志寄存器。累加器是一个特殊的寄存器,它的字长和微处理器的字长相同,累加器具有输入输出和移位功能,微处理器采用累加器结构

16、可以简化某些逻辑运算。由于所有运算的数据都要通过累加器,故累加器在微处理器中占有很重要的位置。3、8086存储器的分段及段地址是如何实现与构成的?由于CPU内部的寄存器都是16位的,为了能够提供20位的物理地址,系统中采用了存储器分段的方法。规定存储器的一个段为64KB,由段寄存器来确定存储单元的段地址,由指令提供该单元相对于相应段起始地址的16位偏移量。这样,系统的整个存储空间可分为16个互不重叠的逻辑段。存储器的每个段的容量为64KB,并允许在整个存储空间内浮动,即段与段之间可以部分重叠、完全重叠、连续排列,非常灵活。4、比较条件传送方式(查询传送方式)和中断传送方式的实现方法和特点条件传

17、送方式:实现方法: 在与外设进行传送数据前,CPU先查询外设状态,当外设准备好后,才执行I/O指令,实现数据传送。特点:1. CPU通过不断查询外设状态,实现与外设的速度匹配 2. CPU的工作效率低中断传送方式:实现方法:1. 当外设准备好,向CPU发出中断请求2. CPU在满足响应中断的条件下,发出中断响应信号;3. CPU暂停当前的程序,转 去执行中断服务程序,完成与外设的数据传送;4. CPU从中断服务程序返回,继续执行被中断的程序特点1. CPU和外设大部分时间处在并行工作状态,只在CPU响应外设的中断申请后, 进入数据传送的过程2. 中断传送方式提高了CPU的效率5、说明8086寄

18、存器间接寻址、变址寻址寻址方式,举例说明寄存器间接寻址操作数是在存储器中,但是,操作数地址的16位偏移量包含在以下四个寄存器SI、DI、BP、BX之一中。可以分成两种情况:(1) 以SI、DI、BX间接寻址,则通常操作数在现行数据段区域中,即数据段寄存器(DS)16加上SI、DI、BX中的16位偏移量,为操作数的地址,。【例如】 MOV AX, SI 操作数地址是:(DS)*16+(SI)(2) 以寄存器BP间接寻址,则操作数在堆栈段区域中。即堆栈段寄存器(SS)16与BP的内容相加作为操作数的地址, 【例如】MOV AX,BP 操作数地址是:(SS)*16+(BP)若在指令中规定是段超越的,

19、则BP的内容也可以与其它的段寄存器相加,形成操作数地址。 【例如】 MOV AX,DS:BP 操作数地址是:(DS)*16+(BP)变址寻址由指定的寄存器内容,加上指令中给出的8位或16位偏移量(当然要由一个段寄存器作为地址基准)作为操作数的偏移地址。(操作数在存贮器中)可以作为寄存器变址寻址的四个寄存器是SI、DI、BX、BP。(1) 若用SI、DI和BX作为变址,则与数据段寄存器相加,形成操作数的地址即默认在数据段;(2) 若用BP变址,则与堆栈段寄存器相加,形成操作数的地址即默认在堆栈段。【例如】 MOV AX,COUNTSI;操作数地址是:(DS)*16+(SI)+COUNT但是,只要

20、在指令中指定是段超越的,则可以用别的段寄存器作为地址基准。6、说明无条件传送方式和DMA 传送方式的实现方法和特点一、无条件传送方式 (同步传送方式) 实现方法 CPU不查询外设工作状态, 与外设速度的匹配通过在软件上延时完成, 在程序中直接用I/O指令,完成与外设的数据传送 特点 1. 适用于外设动作时间已知, 在CPU与外设进行数据传送时,外设保证已准备好的情况 2. 软硬件十分简单。四、DMA 传送方式(直接存储器存取方式) 实现方法:1. 由专用接口芯片DMA控制器 (称DMAC) 控制传送过程,2. 当外设需传送数据时,通过DMAC向CPU发出总线请求;3. CPU发出总线响应信号,

21、释放总线;4. DMAC接管总线,控制外设、内存之间直接数据传送DMA传送方式的特点 1. 外设和内存之间,直接进行数据传送,不通过CPU, 传送效率高。适用于在内存与高速外设、或两个高速外设之间进行大批量数据传送。 2. 电路结构复杂,硬件开销较大。7、为什么要研究时序(1) 可以进一步了解在微机系统的工作过程中,CPU各引脚上信号之间的相对时间关系。由于微处理器内部电路、部件的工作情况,用户是看不到的,通过检测CPU引脚信号线上,各信号之间的相对时间关系,是判断系统工作是否正常的一种重要途径;(2) 可以深入了解指令的执行过程;(3) 可以使我们在程序设计时,选择合适的指令或指令序列,以尽

22、量缩短程序代码的长度及程序的运行时间。因为对于实现相同的功能,可以采用不同的指令或指令序列,而这些指令或指令序列的字节数及执行时间有可能不相同的。(4) 对于学习各功能部件与系统总线的连接及硬件系统的调试,都十分有意义,因为CPU与存储器、I/O端口协调工作时,存在一个时序上的配合问题。(5) 才能更好地处理微机用于过程控制及解决实时控制的问题8、中断服务子程序的响应过程CPU响应中断以后,就会中止当前的程序,转去执行一个中断服务子程序,以完成为相应设备的服务。中断服务子程序的一般结构如图7-4所示。(1) 保护现场(由一系列的PUSH指令完成)。目的是为了保护那些与主程序中有冲突的寄存器,(

23、如AX,BX,CX等),如果中断服务子程序中所使用的寄存器与主程序中所使用的寄存器等没有冲突的话,这一步骤可以省略。(2) 开中断(由STI指令实现)。目的是为了能实现中断的嵌套。(3) 中断服务(4) 恢复现场是与保护现场对应的,但要注意数据恢复的次序,以免混乱。(5) 返回(使用中断返回指令IRET)。不能使用一般的子程序返回指令RET,因为IRET指令除了能恢复断点地址外,还能恢复中断响应时的标志寄存器的值,而这后一个动作是RET指令不能完成的。中断的工作过程可分为五大步骤:即中断请求、中断判优、中断响应、中断服务和中断返回。9、写出下面运算式对标志寄存器中标志的影响0101010000

24、11100101000101011010101001100110100011CF0、AF1、PF1、ZF0、SF1、OF1(两正数相加结果为负)10、 8086系统存储容量是多少?写出物理地址区域8086有20根地址总线,因此,它可以直接寻址的存储器单元数为220=1Mbyte8086可直接寻址1Mbyte的存储空间,其地址区域为00000HFFFFFH,与存储单元一一对应的20位地址,我们称之为存储单元的物理地址。三、程序题1、设内存BUFF开始的单元中依次存放着30个8位无符号数,求它们的和并放在SUM单元中,试编写程序。(10分)解:这是一个求累加的程序。程序如下:MOV SI,BUFF

25、 ;设地址指针MOVCX,30 ;设计数初值XORAX,AX ;设累加器初值AGAIN:ADDAL,SIADCAH,0INCSIDECCXJNZAGAIN ;循环累加MOVSUM,AX2、利用查表法计算平方值。已知0 9的平方值连续存在以SQTAB开始的存储区域中,求SUR单元内容X的平方值,并放在DIS单元中。假定0X 9且为整数。(15分)解:建立平方表,通过查表完成。STACKSEGMENTDB 100 DUP(?)STACK ENDSDATASEGMENTSUR DB ?DIS DB ?SQTAB DB 0,1,4,9,16,25,36,49,64,81 ; 09的平方表DATA EN

26、DSCODESEGMENTASSUME CS:CODE,DS:DATA,SS:STACK,ES:DATABEGIN:PUSH DSMOVAX,0PUSHAX ;保证返回DOS,MOVAX,DATAMOVDS,AX ;为DS送初值LEA BX,SQTAB ;以下程序部分完成查表求平方值MOVAH,0 ;亦可用查表指令完成(如下程序段)MOVAL,SUR ;AL=X LEA BX, SQTABADDBX,AX ; MOV AL, SURMOVAL,BX ; XLAT MOVDIS,AL ; MOV DIS, ALCODEENDSEND BEGIN3、在中断向量表中查找从键盘输入的字符,并将其个数用

27、二进制形式显示出来。code SEGMENT ;代码段开始 ASSUME CS:code begin: MOV AX, 0000H ;设置查找首地址 MOV DS, AX MOV SI,0000H MOV CX,0400H ;设置查找长度 MOV BX,0 ;计算值初值 MOV AH,01H ;从键盘输入 INT 21H ;输入关键字 MOV DL,AL ;保存在DL中 next: LODSB ;从串取 CMP AL, DL ;与关键字比较 JNZ point INC BX ;计算值加1 point: LOOP next ;查找结束? CALL display ;调用显示子程 MOV AH,4

28、CH ;调用4CH功能 INT 21H ;返回DOS;用二进制显示BX内容子程 display PROC MOV CX, 16 ;显示位数 rotate: ROL BX, 1 MOV DL, BL AND DL, 01H ADD DL, 30H MOV AH, 2H INT 21H LOOP rotate RET ;子程返回 display ENDP code ENDS ;代码段结束 END begin四、设计题1、设有若干片256K8位的SRAM芯片,问:(1) 采用字扩展方法构成2048KB的存储器需要多少片SRAM芯片?(2) 该存储器需要多少字节地址位? (3) 画出该存储器与CPU连

29、接的结构图,设CPU的接口信号有地址信号、数据信号、控制信号MREQ#和R/W#。解:(1) 该存储器需要2048K/256K = 8片SRAM芯片; (2) 需要21条地址线,因为221=2048K,其中高3位用于芯片选择,低18位作为每个存储器芯片的地址输入。(3) 该存储器与CPU连接的结构图如下。 ramsel73-8译码ramsel2ramsel1ramsel0A20-18A20-0A17-0OE#MREQ#R/W#CPUD7D0D7D0D7D0D7D0D7D0WE A CE256K8DWE A CE256K8DWE A CE256K8DWE A CE256K8D2、设有若干片256

30、K8位的SRAM芯片,问:(1) 如何构成2048K32位的存储器?(2) 需要多少片RAM芯片?(3) 该存储器需要多少地址位?(4) 画出该存储器与CPU连接的结构图,设CPU的接口信号有地址信号、数据信号、控制信号MREQ#和R/W#。答:l 因为32位,因此4片为一组,构成256K32位,2048/256=8组。l 需要84=32片l 2M=221 ramsel73-8译码ramsel2ramsel1ramsel0A22-20A22-2A19-2OE#MREQ#R/W#CPUD31D0D31D0D31D0D31D0D31D0WE A CE256Kx84片DWE A CE256Kx84片

31、DWE A CE256Kx84片DWE A CE256Kx84片D要考好语文,要拥有较高语文素养,能较好的驾驭语言文字提高自己的生活水平和生活质量,就不仅需要科学有效的学习方法,更要有热爱语文、享受语文的情感投入。去年中考,我所教班级的语文成绩优异and improve idle land of utilization, real achieved environment improved and productivity development mutual promoting total win. Five, firmly implement, promoting work ahead,

32、to create highlights. Third deployment, implementation of seven, then it is imperative to strengthen responsibility and improve the mechanisms and implementation. All localities and departments must be convinced that goals, going all out, mustering spirit, work together to ensure that this years obj

33、ectives carry out tasks, at the forefront. First, we must strengthen the leadership to implement. Departments at all levels should always work and rural five water treatment, three to split in an important position, and carry the main responsibility, main leader personally, leaders arrested and laye

34、rs of responsibility rank transmission pressure established hierarchical accountability, and work together to promote the work of the mechanism, a concerted effort pay attention to implementation. County nongban, flood, three to one down to further play a leading catch total, integrated and coordina

35、ted role of all kinds is long, Sheriff Inspector to effectively fulfill their responsibilities, formed the alignment on the fire line and management a lively situation. Second, we must strengthen the test implementation of the Governor. Role play the Governor got the baton, for agricultural and rura

36、l focus and five water treatment, three to split work, refine improve assessment methods and evaluation system, accurate assessment. Combined with dare play, tree benchmark style building five major operations, carry on and gain firsthand experience of supervision, in particular, to strengthen the f

37、ocus on the long signs go left, names such as supervision, urged all levels longer on duty in place. Through the supervisory assessment, to promote habits, stimulating power. Third, we must strengthen implementation style. Departments at all levels to work in rural areas and five water treatment, th

38、ree to split as training cadres for major platforms, compete against large examination room, inspection cadres work performance of the ring, water control and the Japanese pulled a workout, training, discovery and selection of cadres. Than good catch up, first to excellence-oriented. Party members a

39、nd cadres at all levels must adhere to the rural, water control and the Japanese pulled a grass-roots, put down the shelf, leaned pragmatic style, the spirit of play, become a benchmark model. Four, we must strengthen propaganda implementation. Comprehensive utilization of micro-credit, micro-bloggi

40、ng, new media, mining, summarizing, good publicity work in the countryside and five water treatment, three to split advanced models, point to gather positive energy for the community to see the results of our work in time, increase public awareness, participation rates, satisfaction and support. Play gongqingfu, a mass organization and grass-roots such as schools, communityThe role of第 9 页2024-9-5

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服