From d12755b32a4e16f2bc8967ff7657952823372277 Mon Sep 17 00:00:00 2001 From: chai2010 Date: Fri, 24 Aug 2018 12:39:53 +0800 Subject: [PATCH] =?UTF-8?q?ch3.4:=20=E6=B3=A8=E9=87=8A=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ch3-asm/ch3-04-func.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch3-asm/ch3-04-func.md b/ch3-asm/ch3-04-func.md index e247757..8e45c7e 100644 --- a/ch3-asm/ch3-04-func.md +++ b/ch3-asm/ch3-04-func.md @@ -90,8 +90,8 @@ TEXT ·Swap(SB), $0-32 ``` TEXT ·Swap(SB), $0 - MOVQ a+0(FP), AX // a = AX - MOVQ b+8(FP), BX // b = BX + MOVQ a+0(FP), AX // AX = a + MOVQ b+8(FP), BX // BX = b MOVQ BX, ret0+16(FP) // ret0 = BX MOVQ AX, ret1+24(FP) // ret1 = AX RET