© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
S. SmithRISC-V Assembly Language ProgrammingMaker Innovations Serieshttps://doi.org/10.1007/979-8-8688-0137-2_4

4. Controlling Program Flow

Stephen Smith1  
(1)
Gibsons, BC, Canada
 

With a handful of Assembly Language instructions given in previous chapters, they can be performed one after the other in a linear fashion. So far, in this book, programs have been built and debugged. Now, programs will become more interesting by using conditional logic—if/then/else statements, from high-level languages. Loopsfor and while statements from high-level languages will also be introduced. With these additional instructions, all the basics for coding program logic will ...

Get RISC-V Assembly Language Programming: Unlock the Power of the RISC-V Instruction Set now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.