Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 5c2c455

Browse files
ZecyelCopilot
andauthored
Update docs/lab/lab2.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 98bed77 commit 5c2c455

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/lab/lab2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ cmp $0x1,%edi
342342
jle 1258 <recursion(int)+0x2c> # 小于等于 1 则跳转,相当于 x < 2
343343
lea -0x1(%rdi),%edi # x-1
344344
callq 122c <recursion(int)> # recursion(x-1)
345-
mov %eax,%ebp # 将得到的返回值放在rbp中,因为rbp是callee-save,要提前保存
345+
mov %eax,%ebp # 将得到的返回值放在ebp中,因为ebp是callee-save,要提前保存
346346
lea -0x2(%rbx),%edi # x-2,这里也用到了x,因此需要提前保存x
347347
callq 122c <recursion(int)>
348348
...

0 commit comments

Comments
 (0)