正在加载图片...
CISC VS RISC A=A*B A CISC processor would come prepared with a A RISC processor only use simple instructions that specific instruction (we call it "MULT").When can be executed within one clock cycle.Thus,the executed,this instruction “MULT”command could be divided into three 1.Loads the two values into separate registers separate commands: 2.Multiplies the operands in the execution unit 1.“LOAD”moves data from memory to a register 2."PROD"finds the product of two operands located 3.Stores the product in the appropriate register. within the registers 3.“STORE”moves data from a register to memory. Thus,the task of multiplying two numbers can be completed with one instruction: The task of multiplying two numbers can be MULTA,B<<<==this is assembly statement completed with four lines of assembly: LOAD R1,A <<<==this is assembly statement MULT is what is known as a "complex LOAD R2,B <<<==this is assembly statement instruction.” PROD A,B<<<==this is assembly statement STORE R3,A <<<==this is assembly statement 2022/12/14 122022/12/14 12 CISC VS RISC A=A*B A CISC processor would come prepared with a specific instruction (we call it “MULT”). When executed, this instruction 1.Loads the two values into separate registers 2.Multiplies the operands in the execution unit 3.Stores the product in the appropriate register. Thus, the task of multiplying two numbers can be completed with one instruction: MULTA,B <<<==this is assembly statement MULT is what is known as a “complex instruction.” A RISC processor only use simple instructions that can be executed within one clock cycle. Thus, the “MULT” command could be divided into three separate commands: 1.“LOAD” moves data from memory to a register 2.“PROD” finds the product of two operands located within the registers 3.“STORE” moves data from a register to memory. The task of multiplying two numbers can be completed with four lines of assembly: LOAD R1, A <<<==this is assembly statement LOAD R2,B <<<==this is assembly statement PROD A, B <<<==this is assembly statement STORE R3, A <<<==this is assembly statement
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有