- 4
- 0
- 约7千字
- 约 34页
- 2017-07-02 发布于湖北
- 举报
COA课件10概要1
William Stallings Computer Organization and Architecture6th Edition Chapter 10 Instruction Sets: 指令集 Characteristics and Functions §10.1 machine instruction characteristics Instruction set --The complete collection of instructions that are understood by a CPU Machine Code Binary Usually represented by assembly codes 1.Elements(组成要素) of an Instruction Operation code (Op code) 操作码 What to do Source Operand reference 源操作数的信息 From where Result Operand reference目标操作数的信息 To where Next Instruction Reference下一条指令的信息 Where to fetch 2.Where source result Operands? Main memory (or virtual memory) CPU register Immediate I/O device 3.Instruction Representation In machine code each instruction has a unique bit pattern For human, a symbolic representation is used 用符号表示 e.g. ADD, SUB, LOAD Operands can also be represented in this way ADD A,B (A and B are symbolic address) Simple Instruction Format 4.Instruction Types Data processing —Arithmetic and logic instructions Data storage (main memory) —Memory instructions Data movement (I/O) —I/O instructions Program flow control —Test and branch instructions 5.Number of Addresses (a) 4 addresses: Operand1, Operand2, Result, Address(next instruction) Be extremely rare, because of PC. 3 addresses Operand 1, Operand 2, Result a ? b + c;(a,b and c are symbolic address) May be a forth - next instruction (usually implicit) Not common Needs very long words to hold everything —e.g.Length of address=16 bits —Need 16 x 3=48 bits for operand address Example(1) Turn to page 335(354) Y=(A-B) ?(C+D x E) Three-address instructions —SUB Y, A, B; Y?A-B —MPY T, D, E; T?D x E —ADD T, T, C; T?T+C —DIV Y, Y, T; Y?Y ? T Total:four instructions Number of Addresses (b) 2 addresses One address doubles as operand and result a = a + b Reduces length of instruction Requires some extra work Temporary storage to hold some results Example(2) Turn to page 335(354) Y=(
您可能关注的文档
- CKDMBD规范治疗.ppt
- class report冯兴昊.ppt
- CLASS NO.1.ppt
- Clairju中文.ppt
- CLAN070NP01线类不良解析成因概要1.ppt
- Classical Music概要1.ppt
- CLASSVP工作站教程概要1.ppt
- Classification Certification 2013船级社认证详解概要1.pptx
- Class_2_研究生论文写作__complete_sentences概要1.ppt
- Class_3研究生论文写作___functions_and_moves概要1.ppt
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
原创力文档

文档评论(0)