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