Simple value addition
Write a program that loads a value 10
into register a1 and value 12
into register a2.
Then, add the values and store the result in register a3.
Input: Sample task, simple loading of values
In:
None
Out:
Save the result of the addition in register a2.
Your program will be run with the following arguments:
--d-regs --dump-cycles --cycle-limit 100 --asm submission.S
Your program will be scored by this following metric:
Scoring based on the number of cycles used to execute the program.
For interactive solution, you can use QtRvSim. The web version of the simulator is located here.
Top Scores (cycles)
-
Jakub Pelc (jpelc)4
-
mistrjirka4
-
Pavel Pisa (pisa)4
-
mlenc4
-
nkin4
-
_4
-
maxamart6
-
reference10