Skip to content

Commit

Permalink
修改docx/ch1 README.md文件
Browse files Browse the repository at this point in the history
  • Loading branch information
shaokai.wang committed Nov 8, 2024
1 parent 50eaeff commit 92e798c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions docx/ch1-体系结构基础知识/README.md
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字节进行寻址

```
```
2 changes: 1 addition & 1 deletion src/riscv_programming_practice
Submodule riscv_programming_practice updated 39 files
+0 −0 chapter_17/lab17-3/benos/sbi/sbi_lib.c
+0 −0 chapter_17/lab17-3/benos/sbi/sbi_lib.h
+1 −1 chapter_2/benos/Makefile
+ chapter_2/benos/benos.bin
+ chapter_2/benos/benos.elf
+0 −118 chapter_2/benos/benos.map
+ chapter_2/benos/benos_payload.bin
+ chapter_2/benos/benos_payload.elf
+0 −132 chapter_2/benos/benos_payload.map
+ chapter_2/benos/build_sbi/benos_payload.elf
+ chapter_2/benos/build_sbi/mysbi.elf
+ chapter_2/benos/build_sbi/sbi_boot_s.o
+0 −22 chapter_2/benos/build_sbi/sbi_boot_s.s
+0 −97 chapter_2/benos/build_sbi/sbi_lib_c.i
+ chapter_2/benos/build_sbi/sbi_lib_c.o
+0 −1,046 chapter_2/benos/build_sbi/sbi_lib_c.s
+0 −122 chapter_2/benos/build_sbi/sbi_main_c.i
+ chapter_2/benos/build_sbi/sbi_main_c.o
+0 −857 chapter_2/benos/build_sbi/sbi_main_c.s
+ chapter_2/benos/build_sbi/sbi_payload_s.o
+0 −10 chapter_2/benos/build_sbi/sbi_payload_s.s
+ chapter_2/benos/build_src/benos.elf
+ chapter_2/benos/build_src/boot_s.o
+0 −25 chapter_2/benos/build_src/boot_s.s
+0 −31 chapter_2/benos/build_src/kernel_c.i
+ chapter_2/benos/build_src/kernel_c.o
+0 −231 chapter_2/benos/build_src/kernel_c.s
+0 −53 chapter_2/benos/build_src/uart_c.i
+ chapter_2/benos/build_src/uart_c.o
+0 −668 chapter_2/benos/build_src/uart_c.s
+2 −76 chapter_2/benos/include/asm/csr.h
+0 −48 chapter_2/benos/include/asm/sbi.h
+1 −1 chapter_2/benos/include/io.h
+ chapter_2/benos/mysbi.bin
+ chapter_2/benos/mysbi.elf
+0 −126 chapter_2/benos/mysbi.map
+1 −73 chapter_2/benos/sbi/sbi_main.c
+1 −2 chapter_2/benos/src/kernel.c
+30 −29 勘误/勘误.md

0 comments on commit 92e798c

Please sign in to comment.