Book description
Gain the skills required to dive into the fundamentals of the RISC-V instruction set architecture. This book explains the basics of code optimization, as well as how to interoperate with C and Python code, thus providing the starting points for your own projects as you develop a working knowledge of assembly language for various RISC-V processors.
The RISC-V processor is the new open-source CPU that is quickly gaining popularity and this book serves as an introduction to assembly language programming for the processor in either 32- or 64-bit mode. You’ll see how to write assembly language programs for several single board computers, including the Starfive Visionfive 2 and the Espressif ESP32-C3 32-bit RISC-V microcontroller. The book also covers running RISC-V Linux with the QEMU emulator on and Intel/AMD based PC or laptop and all the tools required to do so.
Moving on, you’ll examine the basics of the RISC-V hardware architecture, all the groups of RISC-V assembly language instructions and understand how data is stored in the computer’s memory. In addition, you’ll learn how to interface to hardware such as GPIO ports. With RISC-V Assembly Language Programming you’ll develop enough background to use the official RISC-V reference documentation for your own projects.
What You'll Learn
- Program basic RISC-V Assembly Language
- See 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 projects
- Interface to various hardware devices
- Comprehend code containing Assembly Language
- Reverse engineer and hack code
- Use the official RISC-V reference documentation
Who This Book Is For
Those who 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.
Table of contents
- Cover
- Front Matter
- 1. Getting Started
- 2. Loading and Adding
- 3. Tooling Up
- 4. Controlling Program Flow
- 5. Thanks for the Memories
- 6. Functions and the Stack
- 7. Linux Operating System Services
- 8. Programming GPIO Pins
- 9. Interacting with C and Python
- 10. Multiply and Divide
- 11. Floating-Point Operations
- 12. Optimizing Code
- 13. Reading and Understanding Code
- 14. Hacking Code
- Back Matter
Product information
- Title: RISC-V Assembly Language Programming: Unlock the Power of the RISC-V Instruction Set
- Author(s):
- Release date: February 2024
- Publisher(s): Apress
- ISBN: 9798868801372
You might also like
book
x64 Assembly Language Step-by-Step, 4th Edition
The long-awaited x64 edition of the bestselling introduction to Intel assembly language In the newly revised …
book
Modern X86 Assembly Language Programming: Covers X86 64-bit, AVX, AVX2, and AVX-512
This book is an instructional text that will teach you how to code x86-64 assembly language …
book
RP2040 Assembly Language Programming: ARM Cortex-M0+ on the Raspberry Pi Pico
Learn to program the Raspberry Pi Pico’s dual ARM Cortex M0+ CPUs in Assembly Language. The …
book
Mastering Embedded Linux Programming - Third Edition
Harness the power of Linux to create versatile and robust embedded solutions Key Features Learn how …