The RISC-V Processor is the new open-source CPU that is quickly gaining popularity. With this book, readers will gain the skills required to dive into the fundamentals of the RISC-V instruction set architecture. It provides readers with the starting points for their own projects while they develop a working knowledge of Assembly Language for various RISC-V processors.
The book will be an introduction to Assembly Language Programming for the RISC-V Processor in either 32 or 64-bit mode. It will instruct readers how to write Assembly Language programs for several Single Board Computers, including the Starfive Visionfive 2 and several 32-bit RISC-V microcontrollers.
It will cover all the tools readers require, the basics of the RISC-V hardware architecture, all the groups of RISC-V Assembly Language instructions and to understand how data is stored in the computer's memory. In addition, it will cover how to interface to hardware such as GPIO ports. The book will cover the basics of code optimization, as well as how to inter-operate with C and Python code. Readers will develop enough background to use the official RISC-V reference documentation for their own projects.
What You'll Learn
- Program basic RISC-V Assembly Language.
- Understand how data is represented and stored in a RISC-V based computer.
- Make operating system calls from Assembly Language and include other software libraries in your projects.
- How to interface to the various hardware devices.
- Comprehend code containing Assembly Language.
- Know the basics of reverse engineering and hacking code.
- Use the official RISC-V reference documentation.
Who This Book Is For
Readers that have already learned to program in a higher-level language like Python, Java, C# or even C and now wish to learn Assembly Language programming.