diff --git a/try.c b/try.c
index 4fa273cf432bcac3a9ac9fcc1370878bc59a6695..ea0bbaff473f58cb26af3cf5d664d2d49bbc449a 100644
--- a/try.c
+++ b/try.c
@@ -52,9 +52,9 @@ void switch_to_ctx(ctx_t *pctx)
     }
 
     current_ctx = pctx;
-    asm("movl %%esp, %0"
+    asm("movl %0, %%esp"
         "\n\t"
-        "movl %%ebp, %1"
+        "movl %1, %%ebp"
         :
         : "r"(current_ctx->esp), "r"(current_ctx->ebp));