samples1solns_1.rar

  • vickyakdvicky
    了解作者
  • Protues
    开发工具
  • 457KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2020-04-10 15:05
    上传日期
This is a demo simulation example of 8086 and 8084 along with 8083
samples1solns_1.rar
  • samples1solns_1.pdf
    489.8KB
内容介绍
<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/6265b4834c65f4125910d267/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/6265b4834c65f4125910d267/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">EENG 383 <span class="_ _0"> </span>Sample Problems <span class="_ _1"> </span> </div><div class="t m0 x2 h3 y2 ff2 fs1 fc0 sc0 ls0 ws0">1 </div><div class="t m0 x3 h4 y3 ff3 fs2 fc0 sc0 ls0 ws0">Sample Problem Set #1<span class="_ _2"></span> - SOLUTI<span class="_ _2"></span>ONS </div><div class="t m0 x1 h3 y4 ff2 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h5 y5 ff1 fs1 fc0 sc0 ls0 ws0">Notes: </div><div class="t m0 x4 h5 y6 ff1 fs1 fc0 sc0 ls0 ws0">These problems are typ<span class="_ _2"></span>ical exam pro<span class="_ _2"></span>blems; most are drawn <span class="_ _2"></span>from previous homewo<span class="_ _2"></span>rks and exams.<span class="_ _3"></span> </div><div class="t m0 x4 h5 y7 ff1 fs1 fc0 sc0 ls0 ws0">This exam is open<span class="_ _2"></span> book, open notes.<span class="_ _2"></span> It may h<span class="_ _2"></span>elp to have a calculator.<span class="_ _2"></span> </div><div class="t m0 x4 h5 y8 ff1 fs1 fc0 sc0 ls0 ws0">For partial credit, <span class="_ _2"></span>please show all work, <span class="_ _2"></span>reasoning, a<span class="_ _2"></span>nd steps leading to solutio<span class="_ _2"></span>ns. </div><div class="t m0 x1 h3 y9 ff2 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h3 ya ff2 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h6 yb ff4 fs1 fc0 sc0 ls1 ws0">1.<span class="ff3 ls0"> <span class="_ _4"> </span><span class="ff4">The <span class="ff5">meaning</span> <span class="_ _2"></span>of what is stored in memory depe<span class="_ _2"></span>nds on your interpreta<span class="_ _2"></span>tion. Assume that<span class="_ _2"></span> memory </span></span></div><div class="t m0 x4 h7 yc ff4 fs1 fc0 sc0 ls0 ws0">locations $800 <span class="_ _2"></span>and $801 contain the <span class="_ _2"></span>m<span class="_ _5"></span>achine code<span class="_ _2"></span>s fo<span class="_ _2"></span>r the instructions <span class="ff6">&#8220;<span class="_ _2"></span>COMA&#8221; <span class="_ _2"></span>and &#8220;INCA&#8221;.</span><span class="ls2"> </span>Give the </div><div class="t m0 x4 h7 yd ff4 fs1 fc0 sc0 ls0 ws0">meaning of these va<span class="_ _2"></span>lues in these locat<span class="_ _2"></span>ions if you interpret t<span class="_ _2"></span>hem as:<span class="_ _2"></span> </div><div class="t m0 x1 h7 ye ff4 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h7 yf ff4 fs1 fc0 sc0 ls0 ws0">(a) ASCII charact<span class="_ _2"></span>ers </div><div class="t m0 x1 h7 y10 ff4 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h3 y11 ff2 fs1 fc0 sc0 ls0 ws0">The values are $41<span class="_ _2"></span> and $42. If interpreted as ASCII,<span class="_ _2"></span> t<span class="_ _2"></span><span class="ff7">hese are the characters <span class="_ _2"></span>&#8220;A&#8221; and &#8220;B&#8221;.</span> </div><div class="t m0 x1 h7 y12 ff4 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h7 y13 ff4 fs1 fc0 sc0 ls0 ws0">(b) Unsigned 8-bit <span class="_ _2"></span>integers (i.e.,<span class="_ _2"></span> give the decimal values)<span class="_ _2"></span> </div><div class="t m0 x1 h7 y14 ff4 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h3 y15 ff2 fs1 fc0 sc0 ls0 ws0">These have the deci<span class="_ _2"></span>mal values 65<span class="_ _2"></span> and 66. (<span class="ls3">it </span><span class="ff7">would be <span class="_ _2"></span>the same if they were t<span class="_ _2"></span>w<span class="_ _5"></span>o&#8217;s co<span class="_ _2"></span>mplement integers)<span class="_ _2"></span><span class="ff2"> </span></span></div><div class="t m0 x1 h3 y16 ff2 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h3 y17 ff2 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h6 y18 ff4 fs1 fc0 sc0 ls1 ws0">2.<span class="ff3 ls0"> <span class="_ _4"> </span><span class="ff4">Give the machine code c<span class="_ _2"></span>orrespondi<span class="_ _2"></span>ng to the follow<span class="_ _2"></span>ing <span class="ls4">HC<span class="_ _2"></span></span>S12 assembly languag<span class="_ _2"></span>e progra<span class="_ _2"></span>m.<span class="ls2"> </span>Indicate the </span></span></div><div class="t m0 x4 h7 y19 ff4 fs1 fc0 sc0 ls0 ws0">contents of <span class="_ _2"></span>memory at each address after the prog<span class="_ _2"></span>ram is loaded into <span class="_ _2"></span>memory.<span class="_ _2"></span> </div><div class="t m0 x1 h8 y1a ff8 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h8 y1b ff8 fs1 fc0 sc0 ls5 ws0"> ORG $0D00<span class="ls0"> </span></div><div class="t m0 x1 h8 y1c ff8 fs1 fc0 sc0 ls5 ws0">MAIN LDX #MAIN<span class="ls0"> </span></div><div class="t m0 x1 h8 y1d ff8 fs1 fc0 sc0 ls5 ws0"> STX $3000<span class="ls0"> </span></div><div class="t m0 x1 h8 y1e ff8 fs1 fc0 sc0 ls5 ws0"> CPX $10<span class="ls0"> </span></div><div class="t m0 x1 h8 y1f ff8 fs1 fc0 sc0 ls5 ws0"> BHS HERE<span class="ls0"> </span></div><div class="t m0 x1 h8 y20 ff8 fs1 fc0 sc0 ls5 ws0"> INX<span class="ls0"> </span></div><div class="t m0 x1 h8 y21 ff8 fs1 fc0 sc0 ls5 ws0">HERE NOP<span class="ls0"> </span></div><div class="t m0 x1 h7 y22 ff4 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h3 y23 ff2 fs1 fc0 sc0 ls0 ws0">Solution: </div><div class="t m0 x4 h3 y24 ff9 fs1 fc0 sc0 ls0 ws0">&#61623;<span class="ffa"> <span class="_ _6"> </span><span class="ff2">Opcodes are <span class="_ _2"></span>loaded into memory starting at $0D00<span class="_ _3"></span>. </span></span></div><div class="t m0 x4 h3 y25 ff9 fs1 fc0 sc0 ls0 ws0">&#61623;<span class="ffa"> <span class="_ _6"> </span><span class="ff2">The value of the label M<span class="_ _2"></span>AIN is 0D00<span class="_ _2"></span>. </span></span></div><div class="t m0 x4 h3 y26 ff9 fs1 fc0 sc0 ls0 ws0">&#61623;<span class="ffa"> <span class="_ _6"> </span><span class="ff2">The BHS <span class="_ _2"></span>instruction uses relative ad<span class="_ _2"></span>dressing for the acces<span class="_ _2"></span>s to <span class="_ _2"></span>HERE. </span></span></div><div class="t m0 x4 h3 y27 ff9 fs1 fc0 sc0 ls0 ws0">&#61623;<span class="ffa"> <span class="_ _6"> </span><span class="ff2">The value of the label<span class="_ _2"></span> HERE is 0D0B<span class="_ _2"></span>. </span></span></div><div class="t m0 x4 h3 y28 ff9 fs1 fc0 sc0 ls0 ws0">&#61623;<span class="ffa"> <span class="_ _6"> </span><span class="ff2">The progra<span class="_ _2"></span>m counter will point to 0D0<span class="_ _2"></span>A just before <span class="_ _2"></span>BHS executes </span></span></div><div class="t m0 x4 h3 y29 ff9 fs1 fc0 sc0 ls0 ws0">&#61623;<span class="ffa"> <span class="_ _6"> </span><span class="ff2">So we need an offset o<span class="_ _2"></span>f +1 deci<span class="_ _2"></span>mal </span></span></div><div class="t m0 x1 h3 y2a ff2 fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h3 y2b ff2 fs1 fc0 sc0 ls0 ws0">Address <span class="_ _7"> </span>Contents <span class="_ _8"> </span>Assembly source cod<span class="_ _2"></span>e </div><div class="t m0 x1 h9 y2c ffb fs1 fc0 sc0 ls0 ws0"> <span class="_ _9"> </span> <span class="_ _a"> </span><span class="ls5"> ORG $0D00</span> </div><div class="t m0 x1 h9 y2d ffb fs1 fc0 sc0 ls5 ws0">$0D00<span class="ls0"> <span class="_ _b"> </span></span>CE 0D 00<span class="ls0"> <span class="_ _c"> </span></span>MAIN LDX #MAIN<span class="ls0"> </span></div><div class="t m0 x1 h9 y2e ffb fs1 fc0 sc0 ls5 ws0">$0D03<span class="ls0"> <span class="_ _b"> </span></span>7E<span class="ls0"> </span>30 00<span class="ls0"> <span class="_ _c"> </span></span> STX $3000<span class="ls0"> </span></div><div class="t m0 x1 h9 y2f ffb fs1 fc0 sc0 ls5 ws0">$0D06<span class="ls0"> <span class="_ _b"> </span></span>9E 10<span class="ls0"> <span class="_ _d"> </span></span> CPX $10<span class="ls0"> </span></div><div class="t m0 x1 h9 y30 ffb fs1 fc0 sc0 ls5 ws0">$0D08<span class="ls0"> <span class="_ _b"> </span></span>24 01<span class="ls0"> <span class="_ _d"> </span></span> BHS HERE<span class="ls0"> </span></div><div class="t m0 x1 h9 y31 ffb fs1 fc0 sc0 ls5 ws0">$0D0A<span class="ls0"> <span class="_ _b"> </span></span>08<span class="ls0"> <span class="_ _e"> </span></span> INX <span class="ls0"> </span></div><div class="t m0 x1 h9 y32 ffb fs1 fc0 sc0 ls5 ws0">$0D0B<span class="ls0"> <span class="_ _b"> </span></span>A7<span class="ls0"> <span class="_ _e"> </span></span>HERE NOP <span class="ls0"> </span></div><div class="t m0 x1 h9 y33 ffb fs1 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h3 y34 ff2 fs1 fc0 sc0 ls0 ws0">Starting from $0D00<span class="_ _2"></span>, memory contains $CE, 0D, <span class="_ _2"></span>00, 7E, etc as shown above.<span class="_ _3"></span> </div></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • demo.rar
      512*512超大液晶proteus虚拟仿真
    • proteus 仿真大全
      proteus 仿真大全 文件包含 c 文件和仿真文件
    • Proteus的 ARES画的电路板.doc
      Proteus的 ARES画的电路板.doc 在ARES中,所有的元件的封装,在画电路图时就可以指定,且封装预览一目了然,很是方便,而且制板功能一点都不弱! 下面就讲下Proteus的 ARES制板的一般过程 Proteus的 ARES画的电路板...
    • Android-Proteus:带数据绑定的JSONLayoutInflater
      Proteus : 带数据绑定的JSON LayoutInflater。实现通过 JSON 实现原生 UI 布局
    • Proteus 仿真MSP430实例之14 wdt.7z
      Proteus 仿真MSP430实例之14 wdt.7z
    • 12864液晶Proteus模型
      1.12864液晶的Proteus模型(包含中文字库)。包含一个DEMO文件和51程序,需要的朋友自行下载。 2.lcd12864.dll文件需要放在Proteus目录下的MODELS文件夹中 3.如使用中有问题,欢迎指正.
    • 程序员面试刷题的书哪个好-Proteus:指南
      Proteus实验指导手册   第1章 前言 1.1 编写目的 《微机原理与接口技术》是北京邮电大学为通信工程、信息工程、电子信息工程、电子科学与技术、计算机科学与技术、网络工程等工科电子信息类专业开设的一门必修课程...
    • Ds18B20+proteus+1823.zip
      PIC16F1823读取DS18B23温度传感器的Demo程序,使用RC0端口,通过Proteus进行了仿真,UART串口显示读取值。 另外,内附DS18B23数据手册。
    • s5.rar
      This is a simulation demo of 8051
    • MASM汇编工具.rar
      【汇编语言编辑工具】【DEBUG.EXE,LINK.EXE,MASM.EXE]