;------------------------------------------------------------------- ; Program begins at symbol main ; Example to illustrate RAW w and w/o data forwarding, similar to ; Figures 3.11 and 3.12 in textbook ;------------------------------------------------------------------- .text .global main main: add r1,r2,r3 lw r4,0(r1) ;load into r4 using r1 sw 12(r1),r4 ;store r4 using r1 nop nop nop nop lw r1,0(r2) sub r4,r1,r5 and r6,r1,r7 or r8,r1,r9 nop nop nop nop Finish: ;*** end trap 0