Skip to content

Commit e73f3b5

Browse files
committed
fix asm
1 parent 5fb5220 commit e73f3b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assembly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
### 栈调整
1212

13-
intel 或 AT&T 汇编提供了 push 和 pop 指令族,plan9 中没有 push 和 pop,栈的调整是通过对硬件 SP 寄存器进行运算来实现的,例如:
13+
intel 或 AT&T 汇编提供了 push 和 pop 指令族,~~plan9 中没有 push 和 pop~~,plan9 中虽然有 push 和 pop 指令,但一般生成的代码中是没有的,我们看到的栈的调整大多是通过对硬件 SP 寄存器进行运算来实现的,例如:
1414

1515
```go
1616
SUBQ $0x18, SP // 对 SP 做减法,为函数分配函数栈帧

0 commit comments

Comments
 (0)