RISC-V Assembly for Beginners

If you are new to assembly programming, then RISC-V is a good start.

Erik Engheim
The Startup

--

HiFive Unmatched Mini ITX motherboard for building a RISC-V based PC. Image: CrowdSupply

If you don’t know any assembly programming or perhaps don’t know much coding at all then RISC-V may be one of the better assembly languages to start with. Sure, there are way more x86 assembly tutorials out there. More people who could help you. But x86 is a beast with over 1500 different instructions.

RISC-V in contrast was made specifically to be easy to teach while pragmatic enough to actually allow the implementation of high performance microprocessors.

If you need a smoother start or don’t know anything about microprocessors, you could read my: How Does a Modern Microprocessor Work?

If you need something easier and more “fun” then you could being with various games built around assembly programming: Learn Assembly Programming the Fun Way.

Another might be to learn a retro CPU such as the 6502 used in Commodore 64. The problem with this is that it has an entirely outdated design. It was not designed with the realities of modern hardware in mind.

The great thing about RISC-V is that it is a modern and simple instruction-set designed for modern hardware realities such as slow main memory, use of branch predictors, super scalar out of order execution…

--

--

Erik Engheim
The Startup

Geek dad, living in Oslo, Norway with passion for UX, Julia programming, science, teaching, reading and writing.