CS137-lecture-20210506

ISA cont. #

RISC – reduced instruction set computer #

image_2021-05-06-19-07-36

Some RISC style assembly to calculate \( A = B \cdot (C + D) \)

LD R1, (C)      ; R1 <- M[C]
LD R2, (D)      ; R2 <- M[D]
ADD R3, R1, R2  ; R3 <- R1 + R2
LD R4, (B)      ; R4 <- M[B]
MUL R5, R3, R4  ; R5 <- R3 * R4
ST (A), R5      ; M[A] <- R5

Design example: Accumulator ISA #

image_2021-05-06-19-35-36 image_2021-05-06-19-37-56 image_2021-05-06-19-40-00 image_2021-05-06-19-46-57