This commit is contained in:
[GGSuchao]
2017-07-06 12:22:02 +08:00
committed by GGSuchao
parent f5160e945c
commit 576bb64d83

View File

@@ -12,7 +12,7 @@ int a,b,c,m,*rp;
ASM ("movl %eax,a");
ASM ("mull b");
ASM ("addl %eax,c");
ASM ("adcl %edx,0h");
ASM ("adcl %edx,$0h");
ASM ("divl m");
ASM ("movl %ebx,rp");
ASM ("movl (%ebx),%edx");
@@ -34,7 +34,7 @@ int a,b,c,*rp;
ASM ("movl %eax,a");
ASM ("mull b");
ASM ("addl %eax,c");
ASM ("adcl %edx,0h");
ASM ("adcl %edx,$0h");
ASM ("movl %ebx,rp");
ASM ("movl (%ebx),%eax");
ASM ("movl %eax,%edx");
@@ -47,10 +47,10 @@ int a,b,*c,*rp;
ASM ("mull b");
ASM ("movl %ebx,c");
ASM ("addl %eax,(%ebx)");
ASM ("adcl %edx,0h");
ASM ("adcl %edx,$0h");
ASM ("movl %esi,rp");
ASM ("addl %eax,(esi)");
ASM ("adcl %edx,0h");
ASM ("adcl %edx,$0h");
ASM ("movl (%esi),%eax");
ASM ("movl (%ebx),%edx");
}