Skip to main content
Apress

RISC-V Assembly Language Programming

Unlock the Power of the RISC-V Instruction Set

  • Book
  • © 2024

Overview

  • Unlock the world of 64-bit programming with this comprehensive Assembly Language book for the RISC-V architecture
  • Gain invaluable insights for targeting diverse hardware platforms, from Linux-powered SBCs to RISC-V Microcontrollers
  • Explore the art of reverse engineering and hacking through real-world examples, empowering you with practical skills

Part of the book series: Maker Innovations Series (MIS)

This is a preview of subscription content, log in via an institution to check access.

Access this book

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

Licence this eBook for your library

Institutional subscriptions

Table of contents (14 chapters)

Keywords

About this book

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.

Authors and Affiliations

  • Gibsons, Canada

    Stephen Smith

About the author

Stephen Smith is a Software Architect, located in Gibsons, BC, Canada. He's been developing software since high school, or way too many years to record. He is an expert in Artificial Intelligence and Assembly Language programming, earned his Advanced HAM Radio License. Smith also enjoys mountain biking, hiking and nature photography, and volunteers for Sunshine Coast Search and Rescue. He is the author of Raspberry Pi Assembly Language Programming, Programming with 64-Bit ARM Assembly Language, and Mobile Devices and RP2040 Assembly Language Programming, all published by Apress. Also, he writes his popular technology blog, at smist08.wordpress.com.


Bibliographic Information

  • Book Title: RISC-V Assembly Language Programming

  • Book Subtitle: Unlock the Power of the RISC-V Instruction Set

  • Authors: Stephen Smith

  • Series Title: Maker Innovations Series

  • DOI: https://doi.org/10.1007/979-8-8688-0137-2

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Stephen Smith 2024

  • Softcover ISBN: 979-8-8688-0136-5Published: 09 February 2024

  • eBook ISBN: 979-8-8688-0137-2Published: 08 February 2024

  • Series ISSN: 2948-2542

  • Series E-ISSN: 2948-2550

  • Edition Number: 1

  • Number of Pages: XXIV, 355

  • Number of Illustrations: 30 b/w illustrations

  • Topics: Hardware and Maker

Publish with us