欢迎访问华乐美文网

h描写片段200子

片段2018-09-06 07:38书业网

篇一:aehjklo英_语四级作文经典片段

、|

!_

一个人总要走陌生的路,看陌生的风景,听陌生的歌,然后在某个不经意的瞬间,你会发现,原本费尽心机想要忘记的事情真的就这么忘记了..

Chapter One 文章开头句型

1-1 对立法 : 先引出其他人的不同看法,然后提出自己的看法或者偏向于某一看法, 适用于有争议性的主题.

[1]. When asked about....., the vast/overwhelming majority of people say that ....... But I think/view a bit differently.

[2]. When it comes to .... , some people bielive that ....... Others argue/claim that the opposite/reverse is true . There is probably some truth in both arguements/statements , but (I tend to the profer/latter ...)

[3]. Now, it is commonly/generally/widely believed/held/acknowledged that .... They claim/ believe/argue that ... But I wonder/doubt whether.....

1-2 现象法 引出要剖析的现象或者问题, 然后评论 .

[1]. Recently the rise in problem of/(phenomenon of) ... has cause/aroused

public/popular/wide/ worldwide concern.

[2]. Recently the issue of the problem of/the phenomenon of ...has been brought into focus. ( has been brouth to public attention)

[3].Inflation/Corruption/Social inequality ... is yet another of the new and bitter truth we have to learn to face now/constantly.

----- To be continued !!

1-3 观点法 ----开门见山,直接了当地提出自己对要讨论的问题的看法.

[1]. Never history has the change of .. been as evident as ... Nowhere in the world/China has the issue/idea of .. benn more visible/popular than...

[2]. Now people in growing/significant numbers are beginnig/coming to realize/accept/(be aware) that...

[3]. Now there is a growing awareness/recognation ot the necessity to......Now people become increasingly aware/conscious of the importance of ......

[4]. Perhaps it is time to have a fresh look at the attitude/idea that.......

1-4 引用法 ----- 先引出名人名言或者有代表性的看法, 来引出文章要展开论述的观点!

[1]. "Knowledge is power." such is the remark made by Bacon.This remark has been shared by more and more people .

"Education is not complete with gradulation." Such is the opnion of a great American philosopher. Now more and more people share his opnion.

[2]."........." How often we hear such statements/words like thoses /this .

In our own days we are used to hearing such traditional complains as this "......". 1-5 比较法 ------ 通过对过去,现在 两种不同的倾向,观点的比较 , 引出文章要讨论的观点.

[1]. For years, ...had been viewed as ... But people are taking a fresh look now. With the growing ... , people ....... .

[2]. People used to think that ... (In the past, ....) But people now share this new. 1-6 故事法 ---- 先讲一个较短的故事来引发读者的兴趣, 引出文章的主题.

[1]. Once in (a newspaper) , I read of/learnt .... The phenemenon of ... has aroused public concern.

[2]. I have a friend who ... Should he .... ? Such a dilemma we are often confront with in our daily life.

[3]. Once upon a time , there lived a man who ... This story may be (unbelievable) , but it still has a realistic significance now.

1-8 问题法 ----- 先用讨论或解答的设问, 引出自己观点, 适用于有争议性的话题. Should/What ...... ? Options of ... vary greatly , some ..., others ...

But in my opinion , ...... .

Chapter 2 文章中间主体内容句型

原因结果分析

3-1-1. 基本原因 --- 分析某事物时, 用此句型说明其基本的或者多方面的原因.

[1]. Why ... ? For one thing.. For another ...

[2]. The answer to this problem invovles many factors. For one thing... For another...... Still another ...

[3]. A number of factors , both physical and psychological affect .... /both individual and social contribute to ....

3-1-2 另一原因 --------> 在分析了基本原因之后, 再补充一个次要的或者更重要时用!

[1]. Another important factor is ....

[2]. ... is also responsible for the change/problem.

[3]. Certainly , the ... is not the sole reason for .....

3-1-3 后果影响 --------- 分析某事物可能造成的后果或者带来的影响 .

[1]. It will produce a profound/far-reaching effect/impact on....

[2]. In involves some serious consequence for ........

比较对照句型

3-2-1. 两者比较 ---> 比较两事物, 要说出其一超过另一个, 或肯定一事物的优点, 也肯定其缺点的时候用 !

[1]. The advantages gained from A are much greater than the advantages we gain from

B.

[2]. Indeed, A carries much weight when compared with B.

[3]. There is no doubt that it has its negative effects as well as positive effects.

3-2-2 . 两者相同/相似 ------> 比较两事物共同都有或者共同都没有的特点时用!

[1]. A and B have several thing in common. They are similar in that.....

[2]. A bears some sriking resemblance(s) to B.

Chapter Three 文章结尾形式

2-1 结论性--------- 通过对文章前面的讨论 ,引出或重申文章的中心思想及观点 .

[1]. From what has been discussed above, we may safely draw the conclusion that .....

[2]. In summary/In a word , it is more valuable .......

2-2 后果性------ 揭示所讨论的问题若不解决, 将产生的严重后果.

[1]. We must call for an immediate method , because the current phenomenon of ... , if allowed to proceed, will surely lead to the heavy cost of .......

[2]. Obviously , if we ignore/are blind to the problem , there is every chance that .. will be put in danger.

2-3 号召性 -------- 呼吁读者行动起来, 采取行动或提请注意.

[1]. It is time that we urged an immediate end to the undesirable tendcy of ......

[2]. It is essential thar effective measures should be taken to correct the tendency.

2-4 建议性 -------- 对所讨论的问题提出建议性的意见, 包括建议和具体的解决问题的方法.

[1]. While it cannot be solved immediately, still there are ways. The most popular is .... Another method is ... Still another one is .....

[2]. Awareness/Recognition of the problem is the first step toward the situation.

2-5 方向性的结尾方式 ---- 其与建议性的唯一差别就是对问题解决提出总的, 大体的方向或者指明前景.

[1]. Many solutions are being offered here , all of them make some sense, but none is adequate enough. The problem should be recognized in a wide way .

[2]. There is no quick method to the issue of .., but .. might be helpful/benefical.

[3]. The great challenge today is ...... There is much difficulty , but ........

2--6 意义性的结尾方式 --------> 文章结尾的时候,从更高的更新的角度指出所讨论的问题的重要性以及其深远的意义!

[1]. Following these suggestions may not guarantee the success, but the pay off might be worth the effort . It will not only benefit but also benefit .....

[2]. In any case, whether it is posotive or negative, one thing is certain that it will undoubtedly ..

结尾

1.The most effective means to solve this problem is that ______________. In that case, ______________.

2. Everything has its own two sides, no exception with AAA. For one thing, ______________. for another, ______________.

3. My experience tells me that to ______________ needs a thorough and persevering process, and in this process you had better abide by the principles mentioned above.

4. On the whole, it is high time that we recognized the significance of ______________.

5. As a result, we should take some effective methods to ______________.

6. Judging by the figures, we can draw a conclusion that ______________.

7. In a word, the whole society should pay close attention to the problem of ______________. Only in this way can ______________ in the future.

8. In my opinion, we should place much emphasis on the importance of ______________.

9. But ______________ and ______________ have their own advantages. For example, ______________, while ______________. Comparing those two, however, I prefer to ______________.

10. In my opinion, ______________ is just as common as ______________. If

______________, it may be very useful. Whatever ______________, the key point lies in ______________.

11. Are their opinions correct? To my mind, the first idea seems ______________.

As for the second idea, ______________.

12. As a popular saying goes, ______________. In my opinion what really counts is not ______________, but ______________. I believer that as long as ______________, we will ______________. So I am for the opinion that ______________.

13. In my opinion, both sides are partly right. When we ______________, we should take into consideration all aspects of the problems, and then make the right decision.

14. Personally, I believe that ______________. Consequently, I’m confident that a bright future is awaiting us because ______________.

15. In my opinion, all of the people should be brave enough to show our disapproval and criticism when confronted with ______________.

16. People are coming to realize the importance of ______________. They have begun to try their best to ______________. We believe that ______________.

17. All in all, we cannot live without ______________ . But at the same time we must try to find out new ways to cope with problems that would arise.

18. Whatever you do, please remember the saying- ______________. If you understand it and apply it to your study or work, you’ll definitely benefit a lot from it.

19. With the development of society, ______________. So it’s urgent and necessary to ______________. If every member is willing to contribute himself to the society, it will be better and better.

20. It is difficult to say whether ______________ is good or not in general as it depends very much on the situation of ______________. However, from a personal point of view I find ______________.

21. It is essential that effective actions should be taken to end the situation.

22. It is no doubt that special attention must be paid to the problem of ______________.

23. But both ______________ and ______________ have disadvantages. For example, ______________. Which to choose, ______________ or ______________? Careful consideration is necessary before you make your own choice.

24. From what has been discussed above, we may reasonably arrive at the conclusion that ______________.

25. We must search for a quick action, because the present situation of

______________ is grievous, if allowed to proceed, will certainly lead to ______________.

26. No doubt, if we ignore the problem, there is every chance that ______________ will be put in danger.

27. We need to take a second look at the matter from a wider standpoint, otherwise, we won’t ______________.

28. It is high time that ______________. Here are some of the measures that might be taken immediately. 29. In conclusion, we should know about the problem of ______________, and object to ______________. Only in this way ______________.

30. Although it is affected by many factors, still there are certain ways that can make the situation better. The most import is ______________. Another way is ______________. Still another one is ______________.

31. Many solutions are offered here, all of them make some sense, but none is adequate

篇二:汇编语言习题-测验题答案

汇编语言各章习题、测试题答案

习题一

1.1 分别将下列二进制数作为无符号数和带符号数转换为十进制和十六进制数

11010011 01110111 10000011 00101111 10101010

1.2 十六进制运算

1A52H+4438H 3967H-2D81H 37H×12H 1250H×4H

1.3 将十进制数变为8位补码并做运算(结果用二进制、十六进制、十进制表示)

29+53 73-24 -66+82 -102-15

1.4 用压缩BCD码计算(结果用二进制、BCD码、十进制表示)

29+53 73-24 66+18 132+75

1.5 符号位扩展(字节扩展为字,字扩展为双字)

20A3H 94H 3456H 7FHEC00H

1.6 若机器字长为16位,其无符号数表示范围是多少?带符号数表示范围是多少?分别用十进制和十六进制表示。

1.7 写出下列十六进制数所能代表的数值或编码:

(1)38H (2)FFH (3)5AH (4)0DH

1.8 将下列十进制数分别转换为二进制、十六进制、二进制补码、压缩BCD码和ASCII码:

(1)108 (2)46 (3)-15 (4)254

1.9 写出下列算式的8位二进制运算结果,标志位CF、SF、ZF、OF分别是什么值?

(1)56+63 (2)83-45 (3)-74+29 (4)-12-37

1.10 查表,指出ASCII码0DH、0AH、07H、1BH、20H、60H、50H、70H对应的控制字符。 测验一

单选题:

1. 已知X=76,则[X]补

A. 76H B. 4CHC.0B4H D.0CCH

2. 已知[X]补=80H,则。

A. 80H B. 0C. 0FFH D. -80H

3. 已知[X]补=98H,则[X]补。

A. 0CCH B.4CHC. 49H D. 31H

4. 已知X=78,Y=-83,则[X+Y]补=

A. 0F5H B. 0A1HC. 0FBH D. 65H

5. 将124转换成十六进制数的结果是

A. 7CH B. 7DHC. 7EH D. 7BH

6. 将93H看成一个压缩BCD码,其结果是

A. 10010101 B. 10010011 C.10000011D.10000001

7. 45转换成二进制数是

A.10101101 B.00111101 C. 00101101 D. 10011101

8.6CH转换成十进制数是

A. 118 B. 108C. 48 D. 68

9. 将93H扩展为字的结果是

A. FF93H B. 0093H C. 1193H D. 1093H

10.56的压缩BCD码是

A. 38H B. 56HC. 0506H D. 3536H

11.ASCII中的47H表示的字符是

A. “7”B. “G”C. “g”D. “E”

12.十进制数-128的8位二进制数的补码为

A. 11111110 B. 01111111 C. 10000000 D. 10000001

13.下列为补码表示,其中真值最大的是

A. 10001000 B.11111111C.00000000 D.00000001

14.十六进制数88H,可表示成下面几种形式,请找出错误的表示

A. 无符号十进制数136 B. 带符号十进制数-120

C. 压缩BCD码十进制数88 D. 8位二进制数-8的补码

15.计算机对字符、符号采用统一的二进制编码。其编码采用的是

A. BCD码B. 二进制码C.ASCII D. 十六进制码

第一章 参考答案

习题一答案:

1.1无符号数: 11010011=211=D3H,01110111=119=77H,10000011=131=83H,

00101111=47=2FH,10101010=170=AAH

带符号数:11010011= -45=D3H,01110111=+119=77H,10000011= -125=83H,

00101111=+47=2FH,10101010= -86=AAH

1.25E8AH,0BE6H,3DEH,4940H

1.300011101+00110101=01010010=52H=82

01001001+11101000=00110001=31H=49

10111110+01010010=00010000=10H=16

10011010+11110001=10001011=8BH= -117

1.4 00101001+01010011=01111100+00000110=10000010=82H=82

01110011-00100100=01001111-00000110=01001001=49H=49

01100110+00011000=01111110+00000110=10000100=84H=84

0000000100110010+01110101=0000000110100111+00000110

=0000001000000111=0207H=207

1.5 000020A3H,FF94H,00003456H,007FH,FFFFEC00H

1.6 无符号数:0~65535,0000H~FFFFH;带符号数:-32768~+32767,8000H~7FFFH

1.7 (1) 38H等于十进制数56,是十进制数56的补码,数字8的ASCII码,十进制数38的压缩BCD码

(2) FFH等于十进制数-1,是带符号数-1的补码,无符号数为255

(3) 5AH等于十进制数90,是十进制数90的补码,大写字母Z的ASCII码

(4) 0DH等于十进制数13,是十进制数13的补码,回车符的ASCII码

1.8 (1) 108=01101100B=6CH,补码01101100B,压缩BCD码0000000100001000,ASCII码313038H

(2) 46=00101110B=2EH,补码00101110B,压缩BCD码01000110,ASCII码3436H

(3) –15=11110001B=F1H,补码11110001B,ASCII码2D3135H

(4) 254=0000000011111110B=00FEH,补码0000000011111110B,压缩BCD码0000001001010100,ASCII码323534H

1.9 (1) 56+63=01110111B,CF=0,SF=0,ZF=0,OF=0

(2) 83-45=00100110B,CF=0,SF=0,ZF=0,OF=0

(3) -74+29=11010011B,CF=0,SF=1,ZF=0,OF=0

(4) -92-37=01111111B,CF=1,SF=0,ZF=0,OF=1

1.10 回车、换行、响铃、ESC键、空格键、@、P、p

测验一答案:

1~5 BDACA6~10 BCBAB11~15 BCDDC

习题二

2.1 写出冯·诺依曼计算机的基本特点。

2.2 如何解决内存速度与CPU速度不匹配问题。

2.3 计算机总线的分类与作用。

2.4 简述8086CPU寄存器的分组及各自的作用。

2.5 标志寄存器中都有哪些标志位与计算结果有关?

2.6 简述逻辑地址与物理地址的概念,两者的关系。

2.7 存储器为什么要分段?如何分段。

2.8 8086系统把存储器分为哪四种类型的段?各自的特点是什么。

2.9 8086CPU的地址线为20根,寻址空间为1MB。最少可划分为多少个逻辑段?最多呢?

2.10 在四种类型的段中通常使用哪些寄存器表示逻辑地址?

2.11 字节单元和字单元如何区分?若给出一个地址,如何知道要访问的是字节单元还是字单元?

2.12 偶地址单元和奇地址单元在保存数据上有区别吗?

2.13 有一个32K字节的存储区,首地址是3302:5AC8H,写出其首单元和末单元的物理地址。

2.14 什么是有效地址?如何获得有效地址。

2.15 存储单元地址和内容表示如下,请画出存储单元存放形式。

(1) (1280AH)=3456H (2) (20021H)=4DH (3) (33450H)=37A520D1H

2.16 根据逻辑地址计算出物理地址,并解释逻辑地址与物理地址的对应关系。

(1) 2389:3DE9H (2) 1230:EC92H (3) 14D9:C202H

2.17 给出段地址和偏移地址如下,计算出对应的物理地址。

(CS)=54C3H,(ES)=2569H,(DS)=1200H,(SS)=4422H,

(BX)=5678H,(SP)=9945H,(IP)=0E54H,(DI)=63B1H

2.18 已知堆栈区大小为512字节,栈底单元的物理地址为15230H。将两个字入栈保存后,当前栈指针所指单元的物理地址是多少? 堆栈区中还能保存多少个数据?

2.19 写出修改当前数据段200H开始的数据区数据的DEBUG命令。

2.20 对当前代码段从100H开始反汇编的DEBUG命令是什么?

2.21 在DEBUG下,要将寄存器CX的值修改为100H,应该执行什么命令?

2.22 在DEBUG下,怎样将数据段的0号~4号字节单元填入'a'、'b'、'c'、'd'?

测验二

单选题:

1. 在微机系统中分析并控制指令执行的部件是。

A. 寄存器 B. 数据寄存器 C. CPU D. EU

2. 在计算机的CPU中执行算术逻辑运算的部件是。

A. ALU B. PC C. AL D. AR

3. 执行指令PUCH CX后堆栈指针SP自动

A. +2B. +1 C. -2 D. -1

4. 在标志寄存器中表示溢出的标志是。

A. AFB. CF C. OF D. SF

5. 对汇编语言源程序进行翻译的程序是。

A. 连接程序B. 汇编程序 C. 编译程序 D. 目标程序

6. 在汇编语言中,能够翻译成二进制代码的指令是。

A. 汇编指令 B. 伪指令C. 机器指令D. 宏指令

7. 计算机中存储信息的基本单位是一个位。

A. 二进制 B. 八进制 C. 十进制 D. 十六进制

8. 若计算机字长16位,则无符号整数的范围用十六进制表示为

A. 8000H ~FFFFHB.0000H ~7FFFH

C. 0000H ~FFFFH D. 0001H ~FFFFH

9. 在计算机中一个字节由

A. 2 B. 4 C. 8 D. 16

10. 将高级语言程序翻译成机器语言代码的实用程序是

A. 编译程序 B. 汇编程序 C. 解释程序 D.目标程序

11. 设物理地址(10FF0H)=10H,(10FF1H)=20H,(10FF2H)=30H,从地址10FF1H中取出一个字的内容是 。

A. 1020H B.3020H C.2030HD.2010H

12.用指出下一条要执行的指令所在单元的偏移地址。

A.IP B. SP C.通用寄存器 D.段寄存器

13. 代码段寄存器是

A.IP B. SP C. DSD. CS

14. 某数据段存储单元的偏移地址为2200H~31FFH,则其存储空间大小是

A.2K B.4K C. 8K D. 16K

15.在8086标志寄存器中,ZF=1表示。

A.结果有进位 B. 结果为0

C.结果溢出 D. 结果为负

16.两个操作数运算时,下列哪种结果会发生溢出。

A.两个负数相加,结果为负

B.两个正数相加,结果为负

C.一正一负相加,结果为负

D.两个正数相加,结果为正

17.设有一个双精度数12A034B0H,将它存入双字单元12000H,那么12003H中存放的是。

A.B0H B.34HC.A0H D.12H

18.堆栈段的逻辑地址由

A.DS:BX B.ES:DI C.CS:IP D.SS:SP

19.代码段某单元的逻辑地址为3458:2C92H,其物理地址为。

A.37212H B. 36FF2H C.34580HD. 32C92H

20.物理地址的计算公式是

A.段地址×10+偏移地址 B. 偏移地址×10+段地址

C.段地址×10H+偏移地址D. 偏移地址×10H+段地址

21.在8086系统中,数据寄存器组为

A.SI、DI、SP、BPB. AX、BX、CX、DX

C. CS、DS、ES、SS D. CF、SF、ZF、OF

22.在内存中,每一小段的大小为。

A.64KB B. 16KB C.64B D. 16B

23.查看用户程序中数据段10号存储单元的DEBUG命令是

A.D DS:A A B.D DS:A C.D DS:10 10D.D DS:10

24.在DEBUG下,修改寄存器AX的命令是。

A. U AX B. R AX C.R D. A AX

25.从200H开始反汇编的DEBUG命令是

A.U 200 B. R200 C. D200 D.U

测验二答案:

1~5 CACCB 6~10 AACCA11~15 BADBB 16~20 BDDAC21~25 BDABA

第二章 参考答案

习题二答案:

2.9 最少划分为16个逻辑段,最多划分为65536个逻辑段(每段16个字节)

2.10CS:IP,DS:BX、SI、DI,ES:BX、SI、DI,SS:SP、BP

2.11 字节单元保存8位数,字单元保存16位数。根据源操作数的属性确定要访问的是字节单元还是字单元。

2.12 对于字节单元来说,偶地址和奇地址一样;对于字单元而言,最好用偶地址保存,可减少CPU的访存次数。

2.13 首单元的物理地址=38AE8H,末单元的物理地址=38AE8H+7FFFH=40AE7H

2.16 (1)物理地址=27679H (2) 物理地址=20F92H (3) 物理地址=20F92H

(2)和(3)的物理地址是一样的。说明逻辑地址不唯一,多个逻辑地址可对应到同一个物理单元上。

2.17 代码段CS:IP的物理地址=55A84H 堆栈段SS:SP的物理地址=4DB65H

数据段DS:BX的物理地址=17678H 附加段ES:DI的物理地址=2BA41H

2.18当(转 载于:wWW.cSsYq.cOM 书业网:h描写片段200子)前栈指针所指单元的物理地址是1522CH。堆栈区中还能保存254个字。

2.19 执行E 200

2.20 执行U 100

2.21执行R CX,然后输入100

2.22执行E DS:0 ?a? ?b? ?c? ?d?

测验二答案:

1~5 CACCB 6~10 AACCA11~15 BADBB 16~20 BDDAC21~25 BDABA 习题三

3.1 名词解释:零地址指令,一地址指令,二地址指令。

3.2 分别写出与数据有关的7种寻址方式并举例说明。

3.3 已知(BX)=1290H,(SI)=348AH,(DI)=2976H,(BP)=6756H,(DS)=2E92H,(ES)=4D82H,(SS)=2030H,请指出下列指令的寻址方式,并求出有效地址EA和物理地址:

MOV AX,BX

MOV AX,1290H

MOV AX,[BX]

MOV AX,DS:[1290H]

MOV AX,[BP]

MOV [DI][BX],AX

MOV ES:[SI],AX

3.4 寄存器间接寻址方式可以使用哪些寄存器作为间址寄存器?

篇三:第三章作业答案

第三章作业答案

1 80C51单片机有哪几种寻址方式?请列表总结每种寻址方式所对应的寄存器和存储空间 答:

2.试写完成以下每种操作的指令序列。 (1)将R0的内容送到R1答:MOV A, R0MOV R1,A

(2)内部RAM单元60H的内容送到寄存器R2; 解法一:MOV A,60HMOV R2,A 解法二:MOV R2,60H

(3)外部RAM单元1000H的内容传送到内部RAM单元60H答:MOV DPTR,,#1000H

MOVX A,@ DPTR MOV 60H,A

(4)外部RAM单元1000H的内容传送到寄存器R2 答:MOV DPTR,,#1000H

MOVX A,@ DPTR

MOV R2,A

(5) RAM单元1000H的内容传送到外部RAM单元2000H 答:MOV DPTR,,#1000H

MOVX A,@ DPTR MOV DPTR,,#2000H

MOVX @ DPTR,A

3.若(R1)=30H,(A)=40H,(30H)=60H,(40H)=08H。试分析执行下列程序段后上述各单元内容的变化。

答:MOVX A,@R1;A=60HMOV @R1,40H ; (30H)=08HMOV 40H,A ;(40H)=40H

MOV R1,#7FH;(R1)=7FH

结果为 (R1)=7FH, (40H)=40H, (30H)=08H,( A)=60H

4、若(A)=E8H,(R0)=40H,(R1)=20H,(R4)=3AH,(40H)=2CH,(20)=

0FH,试指出CY、AC和OV的值。

答: MOV A, @R0 ; (A)=2CH, R0=40H MOV 40H,#0FH ; (40H)=0FH

ADD A,R4 ; (A)=66H, (CY)=0, (AC)=1, (OV)=0 SWAP A; (A)=66H

DEC @R1 ; (20H)=0EH, (R1)=20H

XCHD A, @R1; (A)=6EH, (20H)=06H, (R1)=20H

5、若(50H)=40H,试写出执行以下程序段后累加器A、寄存器R0及内部RAM的40H、41H和42H单元中的内容各为多少?

答: MOV A ,50H; (A)=40H MOV R0, A ; (R0)=40H MOV A,#00H ; (A)=00H MOV @R0, A ; (40H)=00H MOV A ,3BH ; (A)=(3BH) MOV 41H, A ; (41H)=(3BH) MOV 42H, 41H; (42H)=(3BH)

即最终结果为 (R0)=40H , (40H)=00H , (A)=(3BH) ,(41H)=(3BH) , (42H)=(3BH)

6、试编写程序,将内部RAM的20H、21H和22H三个连续单元的内容存入2FH、2EH和

2DH单元。

解法一: MOV R2,#03H

MOV R0,#20H

MOV R1, #2FH

LOOP: MOV A,@R0MOV @R1,A

INC R0 DEC R1

DJNZ R2, LOOP SJMP $ 解法二:MOV 2FH,20HMOV 2EH,21HMOV 2DH,22H

7、试编写程序,将R1中的低4位数与R2中的高4位数合并成一个8位数,并将其存入在R1中。

答:MOV A, R2 ANL A, #0F0H

MOV R2, A MOV A,R1 ANL A, #0FH ADD A,R2

MOV R1,A

8、若(CY)=1,(P1)=10100011B,(P3)=01101100B。试指出执行下列程序段后,CY、

P1口及P3口内容的变化情况。 答:MOV P1.3, C

MOV P1.4, C ; (P1)=10111011BMOV C, P1.6; (CY)=0MOV P3.6, C

MOV C, P1.0; (CY)=1

MOV P3.4, C; (P3)=00111100B即(CY)=1 ,(P1)=10111011B ,(P3)=00111100B

Copyright @ 2012-2024华乐美文网 All Rights Reserved. 版权所有