# | Problem | Solution |
---|---|---|
Fibonacci Series | Solution | |
Write a RISC-V assembly language program for swapping the contents of two registers, a0 and a1. You may not use any other registers. | Solution | |
Write a RISC-V assembly language program to count the number of ones in a 32-bit number. | Solution | |
Write a RISC-V assembly language program to reverse the bits in a register. Use as few instructions as possible. | Solution | |
Write a succinct RISC-V assembly language program to test whether overflow occurs when a2 is subtracted from a3. | Solution |
References:
- Digital Design and Computer Architecture: RISC-V Edition by Sarah L. Harris and David Harris
- RISC-V Assembly Language Programmer Manual Part I developed by: SHAKTI Development Team @ iitm ’20