Social Icons

twitterfacebookgoogle plusrss feedemail

12/13/2009

微處理機mcs51quiz2008 考古題 / 解答

 這是朱老師提供給我們的考古題                                       09.12.13,PM11:45更新本文章解答密碼
 第16題不需要做 ,所以我把它刪除了
                                                               
本文章題目版權歸屬於朱老師,另外本文所提供答案並不保證其正確性           
Name:                   Class:     ID#:             
Original Status : (All data are in HEXDECIMAL form )

Special Function Registers :
A
B
PSW
DPH
DPL
PCH
PCL

0FH
23H
88H
20H
00 H
30H
50 H


SRAM

+0
+1
+2
+3
+4
+5
+6
+7
+8
+9
+A
+B
+C
+D
+E
+F
00H
2A
30
49
23
03
EC
00
9D
13
19
53
33
AC
90
98
88
10H
10
21
32
33
34
35
36
32
21
12
38
35
3D
87
67
39
20H
8A
59
1F
B3
03
6C
92
BA
C9
0F
53
63
68
72
2B
B8

External Data Memory

+0
+1
+2
+3
+4
+5
+6
+7
+8
+9
+A
+B
+C
+D
+E
+F
2000H
7A
10
49
2A
D3
2C
50
4A
32
19
22
A3
AC
01
48
D8
2010H
80
32
52
33
E4
45
36
70
35
37
38
3A
3F
26
57
F7
2020H
9A
53
6F
B0
F3
66
12
0A
89
8F
B9
A3
BC
32
26
A8

External Program Memory

+0
+1
+2
+3
+4
+5
+6
+7
+8
+9
+A
+B
+C
+D
+E
+F
2000H
75
16
47
8A
D1
20
50
46
3B
10
27
B3
2C
11
A8
08
2010H
83
42
42
93
E5
05
76
75
3A
35
31
3C
0F
66
D7
F2
2020H
91
52
6A
BE
F9
76
1A
4A
C9
88
59
D3
B4
82
F6
68


每一題的起始環境都列在上面,所有答案請以hexadecimal的型態回答。

題目:

1.     MOV       A, R2                     
        Ans:    
        A=          R2 =       



2.    MOV       B, 22H               

       Ans:      
       B=          

3.    MOV       B, @R1                  
       Ans:       
       B=         

4.     ADDC    A, #32H. 
        Ans:  
        A=          PSW =      

5.     MOVC    A,@A+DPTR       
        Ans: 
        A=          

6.     ADD       A, #0FEH                     
        SUBB     A, R4                             
        Ans:   
        A=                 


7.   MUL       AB         
      Ans:    
      A=       B =          

8.    MOV       A, #8F
DIV         AB         
  Ans: 
  A=        B =          

9.     MOV       A, #28H
        ADDC    A, R2
        DA          A              
       Ans:   
        A=     

10. XRL        A, #35H         
       Ans: 
       A=       



11. RL           A
      RRC        A
      RL           A               
      Ans:  
       A=        

12.  SWAP     A
        XCH       A, 20H
        XCHD    A, @R0       
     Ans:  
     A=        B=          (30H)=         

13.  MOVX    A,@DPTR
        MOV       R3, A
        INC         DPTR
        MOVX    @DPTR,A       
       
      Ans:      
      A=               R3=              
       DPTR=              @DPTR=       

14.   MOV       A, #3
        CALL     LOOK_UP
            
        LOOK_UP:    RL          A
                        INC         A
                        MOVC    A, @A+PC
                        RET
                        DB          0,2,4,6,8,10,12,14,16,18,20

         Ans:       
        A=          after CALL LOOK_UP ?

15.   CLR                PSW.3
        SETB      PSW.6                    

        Ans:
        PSW =            



解答:
以下內容已經被作者加密,請自行詢問作者密碼(密碼已經更改)。

wobDomTCjCUBITAhITAhLUh3I3LCk316w7RgwoXDgMKsd8Odwp9MLeaYkuaXqBDDucO1w5HCnyguYT/CusOJI8Kvw4otwpxiITEzIUvDmiEzNCHCrcKVw5tvwo/Ckz9PFcOCLTA3cMK9SsOVJsKSwpDCgBQhMCEfJW/Cpi1QPMKbwpXClzt1MMO3wr0hMzQhbcOgw5jDrcKcLcKyITAhQcOXw5XChiE0NSHCtBXDkGsUGSEzNCEhMzQhBC0vVyTDqMODZR/DssKTwox8bmwISVUtwpNFMEDDpAPCpcKpKWRCBUpEITM5IT0tesO6wpXCk8OJbMOAwonDhG7DjMO7ITEwIR9NwrMtQh4Iwr9DJcOdRyEzNCFkw7bDk8KuaiNPLXLCi2DCqXnDo8K6ITExIcOdKHEhNDUhPXnCkx4tFsOww4VoLsO4XX/CsVPDpMOuwrVgT8O4LRPCtnZXwprDnMKKwrh1ZkMUwoTDt3vCmC1vbXslBMONworCisO1YW90FhLCvSEzMyEtKjzDn1MGEsK9w74+w70Hwo3DgznDnU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tw5zDncOnMwbCqW4dwrpuwr1Sw5TCmHFtLcO6wpvDtcOdU8OEw4TDg8OcwpTDoCExMyHCkMKZwrvCgS1jwobChsOrex9kwoAXw7BCwpLDl2hEeS0rw5DCtsOGTsOJeWzDgMKhITEwISp4wqo6HC3DmMK4Z8Kbw4t2B1B5w4PDqMOuUC7CnDotAnMxw7fCuQ4hMzQhQjU1V8ObAsOUYSEzNCEtwrLDq25EITEwIcKbHsKsITEwIcOXwozDnMOQw5NyKi3CjATClRFdIxxNFUjCi8OqwoV8w4JgLcOyw6HDhMOTE8K0KA==

以上解答不附註解釋
文章 / 解答 如果有錯 請留言跟我說~謝謝!

4 則留言:

  1. 沒誠意,都沒打算式= =

    回覆刪除
  2. 都已經打說"以上解答不附註解釋"
    阿呆
    密碼只有你知道還說別人留的

    回覆刪除
  3. 偶爾走過踏入 我對某些題目很好奇 題目沒有提供R0~R4但是卻可以取值 為什麼?

    回覆刪除

俗話說
凡走過必留下痕跡,凡住過必留下鄰居
凡爬過必留下樓梯,凡來過必留下IP
看過文章之後歡迎留下您寶貴的意見喔!

 
 
无觅相关文章插件,迅速提升网站流量