Question: Bubble sorting an double array of strings and ints in RISC5 / RISC-V? I am trying to write a code for sorting students and their
Bubble sorting an double array of strings and ints in RISC5 / RISC-V?
I am trying to write a code for sorting students and their scores this using bubble sort for 1) name 2) score. So two separate programs. It should work in the online Venus simulator architecture (can google.)
.data Students: .asciiz "Abababl" .word 87 .asciiz "Artl " .word 45 .asciiz "Petel " .word 27 .asciiz "Miller " .word 55 .asciiz "Wills " .word 49 .asciiz "Pahim " .word 90 .asciiz "Losie " .word 90 .asciiz "Katil " .word 59 .asciiz "Kristen" .word 60 .asciiz "Jones " .word 50 howManyStudents: .word 10 .text .globl main main: ####START HERE#### exit:
addi a1 x0 0 # random exit 0 addi a0 x0 17 # print_int ecall ecall
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
