Mercurial > pub > dyncall > dyncall
diff dyncallback/dyncall_callback_x64.S @ 165:572aff021627
- file name/layout cleanup, removed "-att" from x64 .S filenames, as unnecessary and also misleading
- some "I'm bored"-whitespace-cleanup
author | cslag |
---|---|
date | Thu, 05 Jan 2017 10:35:12 +0100 |
parents | 3e629dc19168 |
children | d5705f226298 |
line wrap: on
line diff
--- a/dyncallback/dyncall_callback_x64.S Thu Jan 05 10:17:37 2017 +0100 +++ b/dyncallback/dyncall_callback_x64.S Thu Jan 05 10:35:12 2017 +0100 @@ -24,7 +24,7 @@ -#include "../portasm/portasm-x64-att.S" +#include "../portasm/portasm-x64.S" /* structure sizes */ @@ -58,7 +58,7 @@ GLOBAL(dcCallback_x64_sysv) BEGIN_PROC(dcCallback_x64_sysv) - + PUSH(RBP) MOV(RSP,RBP) @@ -66,7 +66,7 @@ /* float parameters (8 registers spill to DCArgs) */ - SUB(LIT(8*8),RSP) + SUB(LIT(8*8),RSP) MOVSD(XMM7, QWORD(RSP,8*7)) /* struct offset 120: float parameter 7 */ MOVSD(XMM6, QWORD(RSP,8*6)) /* struct offset 112: float parameter 6 */ @@ -95,7 +95,7 @@ PUSH(RDX) MOV(RSP,RSI) /* arg 1 RSI : DCArgs* */ - + /* initialize DCValue */ PUSH(LIT(0)) /* struct offset 0: return value (max long long) */ @@ -121,7 +121,7 @@ GLOBAL(dcCallback_x64_win64) BEGIN_PROC(dcCallback_x64_win64) - + PUSH(RBP) MOV(RSP,RBP) @@ -129,7 +129,7 @@ /* float parameters (4 registers spill to DCArgs) */ - SUB(LIT(4*8),RSP) + SUB(LIT(4*8),RSP) MOVSD(XMM3, QWORD(RSP,8*3)) /* struct offset 72: float parameter 3 */ MOVSD(XMM2, QWORD(RSP,8*2)) /* struct offset 64: float parameter 2 */ @@ -174,7 +174,7 @@ POP(RBP) RET() -END_PROC(dcCallback_x64_win64) +END_PROC(dcCallback_x64_win64) END_ASM