Guest User

Untitled

a guest
Apr 18th, 2020
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Problem1:
  2. Write a RISC-V assembly code to implement the multiply operation on two unsigned
  3. integers (32-bit) using repeated addition (i.e. you are NOT allowed to use multiply
  4. instruction). The code should contain a main part and a recursive procedure that
  5. performs the multiplication algorithm on the two unsigned integers given as parameters.
  6.  
  7. Problem2:
  8. Write a RISC-V assembly code that toggles the case of each alphabet in an input string.
  9. Non-alphabet characters should remain the same. For example, if the input string is
  10. “Welcome to RISC-V” then it should be toggled to “wELCOME TO risc-v”. The code
  11. should contain a main part and a leaf procedure that performs the toggling on the
  12. predefined string using iterations
Add Comment
Please, Sign In to add comment