1. Engineering
  2. Computer Science
  3. helloo who can help with this problem consider the following...

Question: helloo who can help with this problem consider the following...

Question details

Helloo Who can help with this problem

Consider the following DLX assembler program:
start: LW R1, 2020 (R0)
ADD R2, R0, R0
ADD R5, R0, R0
loop: LW R3, 1000 (R2)
ADDI R2, R2, # 4
SEQ R4, R1, R3
BEQZ R4, loop2
ADDI R5, R5, # 1
loop2: SEQI R4, R2, # 1000
BEQZ R4, loop
end: SW 2000 (R0), R5
STOP


Give in a short sentence what the program calculates
And do not forget to comment each line

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution