-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shaokai.wang
committed
Nov 8, 2024
1 parent
50eaeff
commit 92e798c
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 第一章 | ||
|
||
## 前言 | ||
|
||
### 书中汇编代码表示标准 | ||
|
||
* (xn): 直接寻址模式,表示以xn寄存器的值为基地址进行寻址,在书中简称**xn地址** 示例如下: | ||
|
||
``` | ||
la x2, (x1) // 从x1地址中加载8字节数据到x2寄存器中sd x2, (x2) | ||
sd x2, (x1) // 把x2寄存器的值存储到x1地址中 | ||
``` | ||
* offset(xn): 偏移寻址模式,表示以xn寄存器的值为基地址,然后偏移offset字节进行寻址 | ||
|
||
``` | ||
``` |
Submodule riscv_programming_practice
updated
39 files