changeset 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 64206c1b3ef2
children
files run/mini/naked_asm5.d
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/run/mini/naked_asm5.d	Sat Apr 23 19:30:41 2011 +0200
+++ b/run/mini/naked_asm5.d	Sat Apr 23 22:57:32 2011 +0200
@@ -19,7 +19,7 @@
     {
     const OP = (op == '+') ? "add" : "sub";
     asm { naked; }
-    mixin("asm{"~OP~" ESI,EDI; mov EAX, ESI;}");
+    mixin("asm{"~OP~" EDI,ESI; mov EAX, EDI;}");
     asm { ret; }
     }
     else static assert(0, "todo");