about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
authorserpilliere <fabrice.desclaux@cea.fr>2016-04-24 01:25:38 +0200
committerserpilliere <fabrice.desclaux@cea.fr>2016-04-24 01:25:38 +0200
commit09b8308dddcd52aec8e899674d124122ce8555f5 (patch)
tree97abff982dbc36116a0adec12eb22b78d78b71b5 /example
parentb127dbdfe5832a12f7f328dc560344a9900e8918 (diff)
downloadmiasm-09b8308dddcd52aec8e899674d124122ce8555f5.tar.gz
miasm-09b8308dddcd52aec8e899674d124122ce8555f5.zip
X86/arch: fix call @imm
Diffstat (limited to '')
-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: