about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/samples/x86_64.S7
1 files changed, 3 insertions, 4 deletions
diff --git a/example/samples/x86_64.S b/example/samples/x86_64.S
index d090a01b..c37d30fa 100644
--- a/example/samples/x86_64.S
+++ b/example/samples/x86_64.S
@@ -1,10 +1,9 @@
 main:
     MOV R9, 0x0
-    MOV R8, title
-    MOV RDX, msg
+    LEA R8, QWORD PTR [title]
+    LEA RDX, QWORD PTR [msg]
     MOV RCX, 0x0
-    MOV RAX, QWORD PTR [ MessageBoxA ]
-    CALL RAX
+    CALL QWORD PTR [ MessageBoxA ]
     RET
 
 title: