嵌入式arm资料

  • s2_672016
    了解作者
  • 43.6KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-22 03:09
    上传日期
嵌入式相关知识,属于被提取出来的删减版,附带学习源码,经过精心排版,看过之后你会懂得
arm资料.zip
  • 嵌入式arm资料
  • World.doc
    47KB
  • 11.doc
    46.5KB
  • Hello.doc
    54.5KB
  • 填空.docx
    20.6KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/628012743b39c07824d0c98d/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/628012743b39c07824d0c98d/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">1. <span class="ff2 sc1">&#27714;<span class="_ _0"> </span></span>1+2+3+&#8230;+100<span class="ff2 sc1">&#12290; </span></div><div class="t m0 x2 h4 y3 ff3 fs0 fc0 sc0 ls0 ws0">AREA<span class="_ _1"> </span> <span class="_ _1"> </span>test5,</div><div class="t m0 x1 h4 y4 ff3 fs0 fc0 sc0 ls0 ws0">CODE,READONL<span class="_ _2"></span>Y</div><div class="t m0 x3 h4 y5 ff3 fs0 fc0 sc0 ls0 ws0"> CODE32</div><div class="t m0 x3 h4 y6 ff3 fs0 fc0 sc0 ls0 ws0"> ENTR<span class="_ _3"></span>Y</div><div class="t m0 x3 h4 y7 ff3 fs0 fc0 sc0 ls0 ws0">ST<span class="_ _3"></span>AR<span class="_ _2"></span>T <span class="_ _4"></span> MOV R0,#0;</div><div class="t m0 x3 h4 y8 ff3 fs0 fc0 sc0 ls0 ws0"> MOV R1,#1;</div><div class="t m0 x3 h4 y9 ff3 fs0 fc0 sc0 ls0 ws0">LOOP CMP R1,#100;</div><div class="t m0 x3 h4 ya ff3 fs0 fc0 sc0 ls0 ws0"> ADDLE R0,R0,R1;</div><div class="t m0 x3 h4 yb ff3 fs0 fc0 sc0 ls0 ws0"> ADDLE R1,R1,#1;</div><div class="t m0 x3 h4 yc ff3 fs0 fc0 sc0 ls0 ws0"> BLE LOOP;</div><div class="t m0 x3 h4 yd ff3 fs0 fc0 sc0 ls0 ws0">STOP B STOP</div><div class="t m0 x3 h4 ye ff3 fs0 fc0 sc0 ls0 ws0"> END</div><div class="t m0 x1 h3 yf ff1 fs0 fc0 sc0 ls0 ws0">2.<span class="ff2 sc1">&#35813;&#20989;&#25968;&#36820;&#22238;&#30340;&#26368;&#22823;&#20540;&#65292;&#22312;&#20027;&#20989;&#25968;&#20869;&#35843;&#29992;&#12290;</span></div><div class="t m0 x4 h4 y10 ff3 fs0 fc0 sc0 ls0 ws0">AREA<span class="_ _5"> </span> <span class="_ _5"> </span>test5,</div><div class="t m0 x1 h4 y11 ff3 fs0 fc0 sc0 ls0 ws0">CODE,READONL<span class="_ _2"></span>Y</div><div class="t m0 x3 h4 y12 ff3 fs0 fc0 sc0 ls0 ws0"> CODE32</div><div class="t m0 x3 h4 y13 ff3 fs0 fc0 sc0 ls0 ws0"> ENTR<span class="_ _3"></span>Y</div><div class="t m0 x3 h4 y14 ff3 fs0 fc0 sc0 ls0 ws0">ST<span class="_ _3"></span>AR<span class="_ _2"></span>T <span class="_ _4"></span> MOV R0,#1;</div><div class="t m0 x3 h4 y15 ff3 fs0 fc0 sc0 ls0 ws0"> MOV R1,#9;</div><div class="t m0 x3 h4 y16 ff3 fs0 fc0 sc0 ls0 ws0"> BL MAX</div><div class="t m0 x3 h4 y17 ff3 fs0 fc0 sc0 ls0 ws0"> B STOP</div><div class="t m0 x3 h4 y18 ff3 fs0 fc0 sc0 ls0 ws0">MAX CMP R0,R1;</div><div class="t m0 x3 h4 y19 ff3 fs0 fc0 sc0 ls0 ws0"> MOVL<span class="_ _2"></span>T R0,R1; </div><div class="t m0 x3 h4 y1a ff3 fs0 fc0 sc0 ls0 ws0"> MOV PC,LR</div><div class="t m0 x3 h4 y1b ff3 fs0 fc0 sc0 ls0 ws0">STOP END</div><div class="t m0 x1 h3 y1c ff1 fs0 fc0 sc0 ls0 ws0">3. <span class="ff2 sc1">&#25226;&#20869;&#23384;<span class="_ _0"> </span></span>0x10000<span class="_ _0"> </span><span class="ff2 sc1">&#24320;&#22987;&#30340;<span class="_ _0"> </span></span>256<span class="_ _0"> </span><span class="ff2 sc1">&#20010;&#21333;&#20803;&#28165;&#38646;&#12290;</span></div><div class="t m0 x3 h4 y1d ff3 fs0 fc0 sc0 ls0 ws0">AREA test5, CODE,READONL<span class="_ _2"></span>Y</div><div class="t m0 x3 h4 y1e ff3 fs0 fc0 sc0 ls0 ws0"> CODE32</div><div class="t m0 x3 h4 y1f ff3 fs0 fc0 sc0 ls0 ws0"> ENTR<span class="_ _3"></span>Y</div><div class="t m0 x3 h4 y20 ff3 fs0 fc0 sc0 ls0 ws0">ST<span class="_ _3"></span>AR<span class="_ _2"></span>T <span class="_ _4"></span> MOV R0,#0;</div><div class="t m0 x3 h4 y21 ff3 fs0 fc0 sc0 ls0 ws0"> MOV R1,#0x10000</div><div class="t m0 x3 h4 y22 ff3 fs0 fc0 sc0 ls0 ws0"> MOV R2,#0</div><div class="t m0 x3 h4 y23 ff3 fs0 fc0 sc0 ls0 ws0">LOOP CMP R2,#64;</div><div class="t m0 x3 h4 y24 ff3 fs0 fc0 sc0 ls0 ws0"> STRL<span class="_ _2"></span>T R0,[R1],#4;</div><div class="t m0 x3 h4 y25 ff3 fs0 fc0 sc0 ls0 ws0"> ADDL<span class="_ _2"></span>T R2,R2,#1;</div><div class="t m0 x3 h4 y26 ff3 fs0 fc0 sc0 ls0 ws0"> BL<span class="_ _2"></span>T LOOP </div><div class="t m0 x3 h4 y27 ff3 fs0 fc0 sc0 ls0 ws0">STOP B STOP</div><div class="t m0 x3 h4 y28 ff3 fs0 fc0 sc0 ls0 ws0"> END</div><div class="t m0 x1 h3 y29 ff1 fs0 fc0 sc0 ls0 ws0">4. <span class="ff2 sc1">&#23383;&#31526;&#20018;&#25335;&#36125;&#23376;&#31243;&#24207;</span>,<span class="fc1"> </span><span class="ff2 sc1">&#23558;<span class="_ _0"> </span></span>r1<span class="_ _0"> </span><span class="ff2 sc1">&#25351;&#21521;&#30340;&#23383;&#31526;</span></div><div class="t m0 x3 h4 y2a ff3 fs0 fc0 sc0 ls0 ws0">AREA test10,CODE,READONL<span class="_ _2"></span>Y</div><div class="t m0 x3 h4 y2b ff3 fs0 fc0 sc0 ls0 ws0"> CODE32</div><div class="t m0 x3 h4 y2c ff3 fs0 fc0 sc0 ls0 ws0"> ENTR<span class="_ _3"></span>Y</div><div class="t m0 x3 h4 y2d ff3 fs0 fc0 sc0 ls0 ws0">ST<span class="_ _3"></span>AR<span class="_ _2"></span>T <span class="_ _4"></span> </div><div class="t m0 x5 h4 y2 ff3 fs0 fc0 sc0 ls0 ws0"> ADR R0,str</div><div class="t m0 x5 h4 y3 ff3 fs0 fc0 sc0 ls0 ws0"> LDR R1,=0x803C</div><div class="t m0 x5 h4 y4 ff3 fs0 fc0 sc0 ls0 ws0">LOOP L<span class="_ _3"></span>DRB R2,[R0],#1</div><div class="t m0 x5 h4 y5 ff3 fs0 fc0 sc0 ls0 ws0"> STRB R2,[R1],#1</div><div class="t m0 x5 h4 y6 ff3 fs0 fc0 sc0 ls0 ws0"> CMP R2,#0</div><div class="t m0 x5 h4 y7 ff3 fs0 fc0 sc0 ls0 ws0"> BNE LOOP </div><div class="t m0 x5 h4 y8 ff3 fs0 fc0 sc0 ls0 ws0">STOP B STOP</div><div class="t m0 x5 h4 y9 ff3 fs0 fc0 sc0 ls0 ws0">str DCB "hello"," word!"</div><div class="t m0 x5 h4 ya ff3 fs0 fc0 sc0 ls0 ws0"> ALIGN</div><div class="t m0 x5 h4 yb ff3 fs0 fc0 sc0 ls0 ws0"> END</div><div class="t m0 x6 h3 yc ff1 fs0 fc0 sc0 ls0 ws0">5. <span class="ff2 sc1">&#20018;&#27604;&#36739;&#23376;&#31243;&#24207;</span>,<span class="ff2 sc1">&#23454;&#29616;&#27604;&#36739;&#20004;&#20010;&#20018;&#30340;&#22823;&#23567;</span>.</div><div class="t m0 x7 h4 yd ff3 fs0 fc0 sc0 ls0 ws0">AREA test10,CODE,READONL<span class="_ _2"></span>Y</div><div class="t m0 x5 h4 ye ff3 fs0 fc0 sc0 ls0 ws0"> CODE32</div><div class="t m0 x5 h4 yf ff3 fs0 fc0 sc0 ls0 ws0"> ENTR<span class="_ _3"></span>Y</div><div class="t m0 x5 h4 y10 ff3 fs0 fc0 sc0 ls0 ws0">ST<span class="_ _3"></span>AR<span class="_ _2"></span>T <span class="_ _4"></span> MOV R0,#0 </div><div class="t m0 x5 h4 y11 ff3 fs0 fc0 sc0 ls0 ws0"> ADR R1,str1</div><div class="t m0 x5 h4 y12 ff3 fs0 fc0 sc0 ls0 ws0"> ADR R2,str2 </div><div class="t m0 x5 h4 y13 ff3 fs0 fc0 sc0 ls0 ws0">LOOP LDRB R3,[R1],#1</div><div class="t m0 x5 h4 y14 ff3 fs0 fc0 sc0 ls0 ws0"> LDRB R4,[R2],#1</div><div class="t m0 x5 h4 y15 ff3 fs0 fc0 sc0 ls0 ws0"> CMP R3,#0</div><div class="t m0 x5 h4 y16 ff3 fs0 fc0 sc0 ls0 ws0"> CMPNE R4,#0</div><div class="t m0 x5 h4 y17 ff3 fs0 fc0 sc0 ls0 ws0"> BEQ compare</div><div class="t m0 x5 h4 y18 ff3 fs0 fc0 sc0 ls0 ws0"> CMP R3,R4</div><div class="t m0 x5 h4 y19 ff3 fs0 fc0 sc0 ls0 ws0"> BEQ LOOP</div><div class="t m0 x5 h4 y1a ff3 fs0 fc0 sc0 ls0 ws0">Compare SUB R0,R3,R4 </div><div class="t m0 x5 h4 y1b ff3 fs0 fc0 sc0 ls0 ws0">STOP B STOP</div><div class="t m0 x5 h4 y1c ff3 fs0 fc0 sc0 ls0 ws0">str1 DCB "hello"</div><div class="t m0 x5 h4 y1d ff3 fs0 fc0 sc0 ls0 ws0"> ALIGN</div><div class="t m0 x5 h4 y1e ff3 fs0 fc0 sc0 ls0 ws0">str2 DCB "hold" </div><div class="t m0 x5 h4 y1f ff3 fs0 fc0 sc0 ls0 ws0"> END</div><div class="t m0 x6 h3 y20 ff1 fs0 fc0 sc0 ls0 ws0">6.<span class="_ _4"></span> <span class="_ _4"></span><span class="ff2 sc1">&#22359;<span class="_ _6"></span>&#22797;<span class="_ _4"></span>&#21046;<span class="_ _4"></span>&#23376;<span class="_ _4"></span>&#31243;<span class="_ _4"></span>&#24207;<span class="_ _4"></span>&#65292;<span class="_ _6"></span>&#31243;<span class="_ _4"></span>&#24207;<span class="_ _4"></span>&#19968;<span class="_ _4"></span>&#27425;<span class="_ _6"></span>&#23558;<span class="_"> </span></span>8<span class="_ _7"> </span><span class="ff2 sc1">&#20010;<span class="_ _4"></span>&#23383;<span class="_ _4"></span>&#25968;<span class="_ _4"></span>&#25454;<span class="_ _4"></span>&#20174;</span></div><div class="t m0 x6 h3 y21 ff1 fs0 fc0 sc0 ls0 ws0">R0<span class="_ _0"> </span><span class="ff2 sc1">&#20316;&#20026;&#39318;<span class="_ _4"></span>&#22320;&#22336;&#30340;<span class="_ _4"></span>&#19968;&#27573;&#36830;<span class="_ _4"></span>&#32493;&#20869;&#23384;<span class="_ _4"></span>&#21333;&#20803;&#22797;<span class="_ _4"></span>&#21046;&#21040;<span class="_"> </span></span>R1</div><div class="t m0 x6 h3 y22 ff2 fs0 fc0 sc1 ls0 ws0">&#20316;&#20026;&#39318;&#22320;&#22336;&#30340;&#19968;&#27573;&#36830;&#32493;&#30340;&#20869;&#23384;&#21333;&#20803;&#12290;<span class="_ _4"></span><span class="ff1 sc0">R2<span class="_ _0"> </span></span>&#20445;&#23384;&#23558;</div><div class="t m0 x6 h3 y23 ff2 fs0 fc0 sc1 ls0 ws0">&#35201;&#22797;</div><div class="t m0 x8 h4 y24 ff3 fs0 fc0 sc0 ls0 ws0"> AREA test10,CODE,READONL<span class="_ _2"></span>Y</div><div class="t m0 x8 h4 y25 ff3 fs0 fc0 sc0 ls0 ws0"> CODE32</div><div class="t m0 x8 h4 y26 ff3 fs0 fc0 sc0 ls0 ws0"> ENTR<span class="_ _3"></span>Y</div><div class="t m0 x8 h4 y27 ff3 fs0 fc0 sc0 ls0 ws0">ST<span class="_ _3"></span>AR<span class="_ _2"></span>T <span class="_ _4"></span> ADR R0,data</div><div class="t m0 x8 h4 y28 ff3 fs0 fc0 sc0 ls0 ws0"> LDR R1,=0x81A0</div><div class="t m0 x8 h4 y29 ff3 fs0 fc0 sc0 ls0 ws0"> MOV R2,#0</div><div class="t m0 x8 h4 y2a ff3 fs0 fc0 sc0 ls0 ws0">loop ADD R2,R2,#1</div><div class="t m0 x8 h4 y2b ff3 fs0 fc0 sc0 ls0 ws0"> LDMIA R0!,{R4-R11}^</div><div class="t m0 x8 h4 y2c ff3 fs0 fc0 sc0 ls0 ws0"> STMIA R1!,{R4-R11}^</div><div class="t m0 x8 h4 y2d ff3 fs0 fc0 sc0 ls0 ws0"> CMP R2,#8</div><div class="t m0 x9 h4 y2 ff3 fs0 fc0 sc0 ls0 ws0"> BL<span class="_ _2"></span>T loop</div><div class="t m0 x9 h4 y3 ff3 fs0 fc0 sc0 ls0 ws0">data SP<span class="_ _3"></span>ACE 256</div><div class="t m0 x9 h4 y4 ff3 fs0 fc0 sc0 ls0 ws0">STOP B STOP</div><div class="t m0 x9 h4 y5 ff3 fs0 fc0 sc0 ls0 ws0"> END</div><div class="t m0 xa h3 y6 ff1 fs0 fc0 sc0 ls0 ws0">7. <span class="ff2 sc1">&#27714;&#26368;<span class="_ _4"></span>&#22823;&#20844;&#32422;&#25968;&#23376;&#31243;<span class="_ _4"></span>&#24207;&#65292;&#27714;&#20004;&#20010;&#25968;<span class="_ _4"></span>&#30340;&#26368;&#22823;</span></div><div class="t m0 xb h3 y7 ff2 fs0 fc0 sc1 ls0 ws0">&#20844;&#32422;&#25968;&#12290;</div><div class="t m0 xa h4 y8 ff3 fs0 fc0 sc0 ls0 ws0">AREA test10,CODE,READONL<span class="_ _2"></span>Y</div><div class="t m0 xa h4 y9 ff3 fs0 fc0 sc0 ls0 ws0"> CODE32</div><div class="t m0 xa h4 ya ff3 fs0 fc0 sc0 ls0 ws0"> ENTR<span class="_ _3"></span>Y</div><div class="t m0 xa h4 yb ff3 fs0 fc0 sc0 ls0 ws0">ST<span class="_ _3"></span>AR<span class="_ _2"></span>T <span class="_ _4"></span> MOV R0,#9</div><div class="t m0 xa h4 yc ff3 fs0 fc0 sc0 ls0 ws0"> MOV R1,#15</div><div class="t m0 xa h4 yd ff3 fs0 fc0 sc0 ls0 ws0">loop BL SWT</div><div class="t m0 xa h4 ye ff3 fs0 fc0 sc0 ls0 ws0"> SUB R0,R0,R1</div><div class="t m0 xa h4 yf ff3 fs0 fc0 sc0 ls0 ws0"> CMP R0,#0</div><div class="t m0 xa h4 y10 ff3 fs0 fc0 sc0 ls0 ws0"> BNE loop</div><div class="t m0 xa h4 y11 ff3 fs0 fc0 sc0 ls0 ws0"> MOVEQ R0,R1</div><div class="t m0 xa h4 y12 ff3 fs0 fc0 sc0 ls0 ws0"> B STOP</div><div class="t m0 xa h4 y13 ff3 fs0 fc0 sc0 ls0 ws0">SWT CMP R0,R1</div><div class="t m0 xa h4 y14 ff3 fs0 fc0 sc0 ls0 ws0"> MOVL<span class="_ _2"></span>T R2,R1</div><div class="t m0 xa h4 y15 ff3 fs0 fc0 sc0 ls0 ws0"> MOVL<span class="_ _2"></span>T R1,R0</div><div class="t m0 xa h4 y16 ff3 fs0 fc0 sc0 ls0 ws0"> MOVL<span class="_ _2"></span>T R0,R2</div><div class="t m0 xa h4 y17 ff3 fs0 fc0 sc0 ls0 ws0"> MOV PC ,LR</div><div class="t m0 xa h4 y18 ff3 fs0 fc0 sc0 ls0 ws0">STOP B STOP</div><div class="t m0 xa h4 y19 ff3 fs0 fc0 sc0 ls0 ws0"> END</div><div class="t m0 xa h3 y1a ff1 fs0 fc0 sc0 ls0 ws0">11.<span class="ff2 sc1">&#20869;&#23384;&#25968;&#25454;&#26684;&#24335;&#22823;&#23567;&#31471;&#36716;&#25442;&#25805;&#20316;</span></div><div class="t m0 xb h4 y1b ff3 fs0 fc0 sc0 ls0 ws0"> AREA test12,CODE,READONL<span class="_ _2"></span>Y</div><div class="t m0 xc h4 y1c ff3 fs0 fc0 sc0 ls0 ws0"> CODE32</div><div class="t m0 xb h4 y1d ff3 fs0 fc0 sc0 ls0 ws0"> ENTR<span class="_ _3"></span>Y</div><div class="t m0 xb h4 y1e ff3 fs0 fc0 sc0 ls0 ws0">ST<span class="_ _3"></span>AR<span class="_ _2"></span>T <span class="_ _4"></span> LDR R0,=0x9000</div><div class="t m0 xb h4 y1f ff3 fs0 fc0 sc0 ls0 ws0"> LDR R1,=0x44332201</div><div class="t m0 xc h4 y20 ff3 fs0 fc0 sc0 ls0 ws0"> LDR R3,=0x00FF00FF</div><div class="t m0 xb h4 y21 ff3 fs0 fc0 sc0 ls0 ws0"> MOV R2,#20 </div><div class="t m0 xd h4 y22 ff3 fs0 fc0 sc0 ls0 ws0">LO<span class="_ _3"></span>OP </div><div class="t m0 xb h4 y23 ff3 fs0 fc0 sc0 ls0 ws0"> BL shif</div><div class="t m0 xb h4 y24 ff3 fs0 fc0 sc0 ls0 ws0"> STR R4,[R0],#4</div><div class="t m0 xc h4 y25 ff3 fs0 fc0 sc0 ls0 ws0"> SUB R2,R2,#1</div><div class="t m0 xc h4 y26 ff3 fs0 fc0 sc0 ls0 ws0"> ADD R1,R1,#1</div><div class="t m0 xc h4 y27 ff3 fs0 fc0 sc0 ls0 ws0"> CMP R2,#0</div><div class="t m0 xc h4 y28 ff3 fs0 fc0 sc0 ls0 ws0"> BG<span class="_ _3"></span>T LOOP</div><div class="t m0 xc h4 y29 ff3 fs0 fc0 sc0 ls0 ws0"> B STOP</div><div class="t m0 xb h4 y2a ff3 fs0 fc0 sc0 ls0 ws0">shif AND R4,R3,R1</div><div class="t m0 xc h4 y2b ff3 fs0 fc0 sc0 ls0 ws0"> MOV R4,R4,ROR #8</div><div class="t m0 xc h4 y2c ff3 fs0 fc0 sc0 ls0 ws0"> AND R5,R3,R1, ROR #24</div><div class="t m0 xc h4 y2d ff3 fs0 fc0 sc0 ls0 ws0"> ORR R4,R4,R5</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐