add $5, $7, $2
sw $9, 4($6)
lw $4, 8($12)
or $6, $5, $3
Assume that the code is stored starting at 0x00600000, the values in the memory are all initially -1, and the register values are the same as the number (so $5 holds the value 5). Using the pipelined diagram, give the contents of each internal register at the end of the 4th cycle. Be specific and give the actual values placed into the register.

Register

     IF/ID    ID/EX   EX/MEM     MEM/WB

PC>>>>>10(16)>>>>>c>>>>>>8

Read data1>>>>> 12

Read data2>>>>>> 4>>>>> 9

Sign Extend>>>>>> 8

Zero>>>>>>>>>>>>>>>>>> 0

ALU Result >>>>>>>>>>>>>>>>>>>>>> A

Read data>>>>>>>>>>>>>>>>>>>>>>> 9

but I don't understand the memory part I got confused any help please?!

I don't understand the memory part I got confused

It says that memory at 0x00600000 through however long the assembled code is contains the program, and everywhere else (i.e., 0x00000000-0x005FFFFF and the end of the program to 0xFFFFFFFF) has the value -1.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.