斯巴达克思一古罗马的流血大角

斯巴达克思一古罗马的流血大角

ID:40511265

大小:263.19 KB

页数:41页

时间:2019-08-03

斯巴达克思一古罗马的流血大角_第1页
斯巴达克思一古罗马的流血大角_第2页
斯巴达克思一古罗马的流血大角_第3页
斯巴达克思一古罗马的流血大角_第4页
斯巴达克思一古罗马的流血大角_第5页
资源描述:

《斯巴达克思一古罗马的流血大角》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、Chapter5TheLC-3InstructionSetArchitectureISAOverviewOperateinstructionsDataMovementinstructionsControlInstructionsLC-3datapathLC-3ISAOverviewMemoryorganizationAddressspace:216=64klocationsAddressability:WordWordsize=2bytes=>totalmemory=64kx2=128kbytesRegisters8x16bitGeneralPurposeRegisters:R

2、0-R73x1bitConditionCodeRegisters:N,Z,PSomespecialpurposeregisters(morelater)Instructions16bitinstructions,with4bitopcodesNativeDataType:only2’scomplementintegerAddressingModes:Immediate,Register,Direct,Indirect&Base+Offset2LC-3InstructionsOperateManipulatedatadirectly-arithmeticorbitwiselogi

3、cADD,AND,NOTDataMovementMovedatabetweenmemoryandregistersLD,LDI,LDR,LEA,ST,STI,STRControlChangethesequenceofinstructionexecutionBR,JMP/RET,JSR/JSSR,TRAP,RTI3InstructionConstructionTwomainpartsOpcode:specifieswhattheinstructiondoes.Operand(s):whattheinstructionactson.Instructionsetscanbecompl

4、exorsimple(CISC,RISC),single-wordormulti-word.LC-3Singleword(16bit)instructions.4-bitopcode=>16instructions(verysimpleset!)remaining12bitsspecifyoperand(s),accordingtotheaddressingmodepropertoeachinstruction.4LC3InstructionsLC-3Instructionword:16bitsOpcodeIR[15:12]:4bitsallow16instructionssp

5、ecifiestheinstructiontobeexecutedOperandsIR[11:0]containsspecificationsfor:Immediatevalue:5bitsRegisters:8GPRs(i.e.require3bitsforaddressing)AddressGenerationbits:Offset(11or9or6bits)(morelater)ExamplesADDDR,SR1,SR2;DR(SR1)+(SR2)[15:12][11:9][8:6][2:0]LDRDR,BaseR,Offset;DRMem[BaseR+Offset]

6、[15:12][11:9][8:6][5:0]5AddressingModesNote:theeffectiveaddress(ea)isthememorylocationoftheoperandTheLC-3supportsfiveaddressingmodes:theoperandislocated:intheinstructionitself(immediate)inaregisterinmemory:theeaisencodedintheinstruction(direct,orPC-relative)apointertotheeaisencodedintheinstr

7、uction(indirect)apointertotheeaisstoredinaregister(relative,orbase+offset)6OperateInstructionsNOT(unaryoperator)destinationregisterinIR[11:9]andasinglesourceregisterinIR[8:6].bitsIR[5:0]areall1s.ADD&AND(binaryoperators)destinationregisterinIR[11:9]

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。