错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Loading and Adding

  • Stephen Smith

摘要

The goal of this chapter is to load various integer values into the CPU and perform basic addition and subtraction operations on these values. This sounds simple, but at the low level of Assembly Language, this can get complicated. In this chapter, we will go step-by-step through the various forms of the add, sub, and Shift instructions, to lay the groundwork on how all instructions work, especially in the way they handle parameters. This is so that in subsequent chapters, we can proceed at a faster pace as we encounter the rest of the RISC-V instruction set.