Print hexadecimal number to serial port

Write a program that reads a number from input_val, converts it to ASCII character array and prints those characters to the serial port.

The complete task description can also be found here, Makefile and template files for your own testing can be found on GitLab.

Input: Print hex to uart.
In: Input number located at input_val.
Out: Input number printed as ASCII characters to UART.

Your program will be run with the following arguments: --dump-cycles --pipelined --cycle-limit 2500 --asm submission.S
Your program will be scored by this following metric: Runtime of the program in cycles.

For interactive solution, you can use QtRvSim. The web version of the simulator is located here.
Top Scores (cycles)
  • svehlda2
    44
  • nkin
    158
  • reference
    303