欢迎来到人人文库网! | 帮助中心 人人文档renrendoc.com美如初恋!
人人文库网
全部分类
  • 图纸下载>
  • 教育资料>
  • 专业文献>
  • 应用文书>
  • 行业资料>
  • 生活休闲>
  • 办公材料>
  • 毕业设计>
  • ImageVerifierCode 换一换
    首页 人人文库网 > 资源分类 > PPT文档下载  

    友邦科技入职登记表填写完后email至

    • 资源ID:7832101       资源大小:164KB        全文页数:36页
    • 资源格式: PPT        下载积分:30积分
    扫码快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 支付宝登录   QQ登录   微博登录  
    二维码
    微信扫一扫登录

    手机扫码下载

    请使用微信 或支付宝 扫码支付

    • 扫码支付后即可登录下载文档,同时代表您同意《人人文库网用户协议》

    • 扫码过程中请勿刷新、关闭本页面,否则会导致文档资源下载失败

    • 支付成功后,可再次使用当前微信或支付宝扫码免费下载本资源,无需再次付费

    账号:
    密码:
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源(1积分=1元)下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    友邦科技入职登记表填写完后email至

    Relatively Simple CPU and 8085 microprocessor Instruction Set Architecture,Presented by: Chi Yan HungClass: Cs 147 - sec 2 Fall 2001Prof: Sin-Min Lee,Chapter 3,Topics to cover,3.4.,Relatively Simple Instruction Set Architecture,3.5.,8085 Microprocessor Instruction Set Architecture Analyzing the 8085 Instruction Set Architecture,3.6.,Summary,Relatively Simple microprocessors, or CPU·Designed as an instructional aid and draws its features from several real microprocessors·Too limited to run anything as complex as personal computer·It has about the right level of complexity to control a microwave oven or other consumer appliance,3.4.,Instruction Set Architecture (ISA)·Memory Model·Registers·Instruction set,Memory Model·This microprocessor can access 64K ( = 216 ) bytes of memory·Each byte has 8 bits, therefore it can access 64K 8 bits of memory·64K of memory is the maximum limit, sometimes asystem based on this CPU can have less memory·Use memory to map I/OSame instructions to use for accessing I/O devices and memory,Registers Accumulator (AC), is an 8-bit general purpose register Register R, is an 8-bit general purpose register. It supplies the second operand and also it can be use to store data that the AC will soon need to access. Flag Z, is an 1-bit zero flag. Z is set to 1 or 0 whenever an instruction is execute Other registers that cannot be directly accessed by programmer,Instruction Set·Data movement instructions·Data operation instructions·Program control instructions,Data movement instruction for the Relatively Simple CPU,AC accumulator registerR general purpose register/M 16-bit memory address,NOP - performs no operation LDAC - loads data from memory and stores it in the AC STAC - copies data from AC to memory location MVAC - copies data in AC to register R MOVR - copies data from R to AC,Data operation instruction for the Relatively Simple CPU,AC accumulator registerR general purpose registerZ zero flag,Program control instruction for the Relatively Simple CPU,Z zero flag - 16-bit memory address,Note: Each instruction is having an 8-bit instruction code. LDAC, STAC, JUMP, JUMPZ, and JPNZ instructions all require a 16-bit memory address, represented by /M. These instructions each require 3 bytes in memory.,Instruction formats for the Relatively Simple CPU,byte 1byte 2byte 3,Example:25:JUMP 1234 Hinstruction stored in memory: 25th byte25:0000 0101(JUMP) 26th byte26:0011 0100(34H) 27th byte27:0001 0010(12H),H - in hexadecimal format,The Algorithm of the program1:total = 0, i = 02:i = i + 13:total = total + i4:IF i n THEN GOTO 2What exactly this algorithm doing is: 1+ 2 + + (n 1) + n,Example program using Relatively Simple CPU coding,The Relatively Simple CPU coding of the program,CLACSTAC totalSTAC iLoop:LDAC iINACSTAC iMVACLDAC totalADDSTAC totalLDAC nSUBJPNZ Loop,total = 0, i = 0,i = i +1,total = total +1,IF i n THEN GOTO Loop,Relatively Simple microprocessors, or CPU·Designed as an instructional aid and draws its features from several real microprocessors·Too limited to run anything as complex as personal computer·It has about the right level of complexity to control a microwave oven or other consumer appliance,3.5.1-3,Instruction Set Architecture (ISA)·Memory Model·Registers Set·Instruction Set,Memory Model·This microprocessor is a complete 8-bit parallel Central Processing Unit (CPU). ·Each byte has 8 bits·Isolated I/O, input and output devices are treated as being separate from memory. Different instructions access memory and I/O devices,Register Set Accumulator A, is an 8-bit register. Register B, C, D, E, H, and L, are six 8-bit general purpose register. These registers can be accessed individually, or can be accessed in pairs. Pairs are not arbitrary; BC are a pair (16- bit), as are DE, and HL Register HL is used to point to a memory location. Stack pointer, SP, is an 16-bit register, which contains the address of the top of the stack.,The sign flag, S, indicates the sign of a value calculated by an arithmetic or logical instruction. The zero flag, Z, is set to 1 if an arithmetic or logical operation produces a result of 0; otherwise set to 0. The parity flag, P, is set to 1 if the result of an arithmetic or logical operation has an even number of 1s; otherwise it is set to 0. The carry flag, CY, is set when an arithmetic operation generates a carry out. The auxiliary carry flag, AC, very similar to CY, but it denotes a carry from the lower half of the result to the upper half.,The interrupt mask, IM, used to enable and disable interrupts, and to check for pending interrupts,Instruction Set·Data movement instructions·Data operation instructions·Program control instructions,Data movement instruction for the 8085 microprocessor,r, r1, r2 any 8-bits register / M memory locationrp register pair BC, DE, HL, SP(Stack pointer)n 8-bit address or data value,Data operation instruction for the 8085 microprocessor,CY carry flag,Program control instruction for the 8085 microprocessor,cond conditional instructionsNZ (Z = 0)Z (Z = 1)P (S = 0)N (S = 1)PO (P = 0)PE (P = 1)NC (CY = 0)C (CY = 1)Z zero flag, S sign flag, P parity flag, C carry flag,Note: Each instruction is having an 8-bit instruction code. Some instructions have fields to specify registers, while others are fixed.,Instruction formats for the Relatively Simple CPU,byte 1byte 2,Example:25:MVIr, ninstruction stored in memory: 25th byte25:00xxx110(MVI r) 26th byte26:xxxx xxxx(low-order memory),Two-byte,Specifies r,Example:25:MOVr1, r2instruction stored in memory: 25th byte25:0000 0001(MOV) 26th byte26:xxxx xxxx(specifies r1) 27th byte27:yyyy yyyy(specifies r2),byte 1byte 2byte 3,Three-byte,Example:25:LXIrp, instruction stored in memory: 25th byte25:00rp 0001(LXI rp) 26th byte26:xxxx xxxx(low-order memory) 27th byte27:yyyy yyyy(high-order memory),Example:25:LXIrp, instruction stored in memory: 25th byte25:00rp 0001(LXI rp) 26th byte26:xxxx xxxx(low-order memory) 27th byte27:yyyy yyyy(high-order memory),Specifies rp,The Algorithm of the program1:total = 0, i = 02:i = i + 13:total = total + i4:IF i n THEN GOTO 2,n + (n - 1) + + 1,The 8085 coding of the program,LDA nMOV B, AXRA ALoop:ADD BDCR BJNZ LoopSTA total,Example program using 8085 microprocessor coding,i = n,sum = A A = 0,sum = sum + i,i = i - 1,IF i 0 THEN GOTO Loop,total = sum,Analyzing the 8085 ISA·The 8085 CPUs instruction set is more complete than that of the Relatively Simple CPU. More suitable for consumer appliance.·Too limited to run anything as complex as personal computer,3.5.4.,Advantages of the 8085s ISA vs. Relative Simple CPU·It has the ability to use subroutines·It can incorporate interrupts, and it has everything the programmer needs in order to process interrupts.·The register set for the 8085 is mostly sufficient, thus less coding apply which will improve task completion.,·The instruction set is fairly orthogonal. E.g. no clear accumulator instructionDisadvantages of the 8085s ISA ·Like the Relatively Simple CPU, it cannot easily process floating point data.,Summary of ISA1.The ISA specifies a.an instruction set that the CPU can processb.its user accessible registersc.how it interacts with memory2.The ISA does not specify how the CPU is designed, but it specifies what it must be able to do.3.The ISA is concerned only with the machine language of a microprocessor because CPU only executes machine language program, not any kind of high-level program.,3.6.,4.When designing an ISA, an important goal is completeness:a.instruction set should include the instructions needed to program all desired tasks.b.instruction should be orthogonal, minimizing overlap, reducing the digital logic without reducing its capabilities within the CPU.c.CPU should includes enough registers to minimize memory accesses, and improve performance.5.An ISA should specifies the types of data the instruction set to process.,6.An ISA should specifies the addressing modes each instruction can use7.An ISA should specifies the format for each instruction,THE END,

    注意事项

    本文(友邦科技入职登记表填写完后email至)为本站会员(huan****nac)主动上传,人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知人人文库网(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    网站客服QQ:2881952447     

    copyright@ 2020-2025  renrendoc.com 人人文库版权所有   联系电话:400-852-1180

    备案号:蜀ICP备2022000484号-2       经营许可证: 川B2-20220663       公网安备川公网安备: 51019002004831号

    本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知人人文库网,我们立即给予删除!