0

RISC-V Assembly Language Programming

eBook - Unlock the Power of the RISC-V Instruction Set, Maker Innovations Series

Erschienen am 08.02.2024, 1. Auflage 2024
66,95 €
(inkl. MwSt.)

Download

E-Book Download
Bibliografische Daten
ISBN/EAN: 9798868801372
Sprache: Englisch
Umfang: 0 S., 6.44 MB
E-Book
Format: PDF
DRM: Digitales Wasserzeichen

Beschreibung

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. Youll 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, youll 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 computers memory. In addition, youll learn how to interface to hardware such as GPIO ports. WithRISC-V Assembly Language Programming youll develop enough background to use the official RISC-V reference documentation for your own projects.

What You'll Learn

Program basic RISC-V Assembly LanguageSee how data is represented and stored in a RISC-V based computerMake operating system calls from Assembly Language and include other software libraries in projectsInterface to various hardware devicesComprehend code containing Assembly LanguageReverse engineer and hack codeUse 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.

Autorenportrait

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, andMobile Devices and RP2040 Assembly Language Programming, all published by Apress. Also, he writes his popular technology blog, at smist08.wordpress.com.


Inhalt

Chapter 1: Getting Started. - Chapter 2: Loading and Adding. - Chapter 3: Tooling Up. - Chapter 4: Controlling Program Flow. - Chapter 5: Thanks for the Memories. - Chapter 6: Functions and the Stack. - Chapter 7: Linux Operating System Services. - Chapter 8: Programming GPIO Pins. - Chapter 9: Interacting with C& Python. - Chapter 10: Multiply and Divide. - Chapter 11: Floating-Point Operations. - Chapter 12: Optimizing Code. - Chapter 13: Reading and Understanding Code. - Chapter 14: Hacking Code. - Appendix A: The RISC-V Instruction Set. - Appendix B: Binary Formats. - Appendix C: Assembler Directives. - Appendix D: ASCII Character Set. - Appendix E: Answers to Exercises.


Informationen zu E-Books

„E-Book“ steht für digitales Buch. Um diese Art von Büchern lesen zu können wird entweder eine spezielle Software für Computer, Tablets und Smartphones oder ein E-Book Reader benötigt. Da viele verschiedene Formate (Dateien) für E-Books existieren, gilt es dabei, einiges zu beachten.
Von uns werden digitale Bücher in drei Formaten ausgeliefert. Die Formate sind EPUB mit DRM (Digital Rights Management), EPUB ohne DRM und PDF. Bei den Formaten PDF und EPUB ohne DRM müssen Sie lediglich prüfen, ob Ihr E-Book Reader kompatibel ist. Wenn ein Format mit DRM genutzt wird, besteht zusätzlich die Notwendigkeit, dass Sie einen kostenlosen Adobe® Digital Editions Account besitzen. Wenn Sie ein E-Book, das Adobe® Digital Editions benötigt herunterladen, erhalten Sie eine ASCM-Datei, die zu Digital Editions hinzugefügt und mit Ihrem Account verknüpft werden muss. Einige E-Book Reader (zum Beispiel PocketBook Touch) unterstützen auch das direkte Eingeben der Login-Daten des Adobe Accounts – somit können diese ASCM-Dateien direkt auf das betreffende Gerät kopiert werden.
Da E-Books nur für eine begrenzte Zeit – in der Regel 6 Monate – herunterladbar sind, sollten Sie stets eine Sicherheitskopie auf einem Dauerspeicher (Festplatte, USB-Stick oder CD) vorsehen. Auch ist die Menge der Downloads auf maximal 5 begrenzt.