CISC

risc-and-cisc-computes

Write a RISC & CISC-style program that computes the expression ANSWER = A × B + C × D

RISC-style program: A RISC-style program that computes ANSWER = A × B + C × D   Move R2, #A Get the address of A   Load R3, (R2) Load the operand A   Move R2, #B Get the address operand of B   Load R4, (R2) Load the operand B   Multiply R5, R3, […]

Write a RISC & CISC-style program that computes the expression ANSWER = A × B + C × D Read More »

risc-and-cisc-computes

Write a RISC & CISC-style program that computes the expression SUM = 580 + 68400 + 80000

RISC-style program: A RISC-style program that computes SUM = 580 + 68400 + 80000   Move R2, #NUMBERS Get the address of the numbers.   Load R3, (R2) Load 580   Load R4, 4(R2) Load 68400   Add R3, R3, R4 Generate 580 + 68400   Load R4, 8(R2) Load 80000   Add R3, R3,

Write a RISC & CISC-style program that computes the expression SUM = 580 + 68400 + 80000 Read More »

Scroll to Top