From a092e2a85923e7af215761bd028b4eded14b3a41 Mon Sep 17 00:00:00 2001 From: chai2010 Date: Thu, 23 Aug 2018 17:55:06 +0800 Subject: [PATCH] =?UTF-8?q?ch3.4:=20=E4=BF=AE=E5=A4=8Dswap=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ch3-asm/ch3-04-func.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ch3-asm/ch3-04-func.md b/ch3-asm/ch3-04-func.md index d1b1cb9..e247757 100644 --- a/ch3-asm/ch3-04-func.md +++ b/ch3-asm/ch3-04-func.md @@ -90,10 +90,10 @@ TEXT ·Swap(SB), $0-32 ``` TEXT ·Swap(SB), $0 - MOVEQ a+0(FP), AX // a - MOVEQ b+8(FP), BX // b - MOVEQ ret0+16(FP), CX // ret0 - MOVEQ ret1+24(FP), DX // ret1 + MOVQ a+0(FP), AX // a = AX + MOVQ b+8(FP), BX // b = BX + MOVQ BX, ret0+16(FP) // ret0 = BX + MOVQ AX, ret1+24(FP) // ret1 = AX RET ```