about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2014-08-28 10:11:22 +0200
committerserpilliere <devnull@localhost>2014-08-28 10:11:22 +0200
commit2637affc31e5f9371fad67f40abb21b7a12d2f03 (patch)
treeaa5a7ab742b5204aeddc72c953033251458eb8e4 /example
parent61578b630f50cd008f18061738b81fa7eb91019f (diff)
downloadmiasm-2637affc31e5f9371fad67f40abb21b7a12d2f03.tar.gz
miasm-2637affc31e5f9371fad67f40abb21b7a12d2f03.zip
ir: move float declaration by arch; clean ir2c
Diffstat (limited to 'example')
-rw-r--r--example/asm_x86.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/example/asm_x86.py b/example/asm_x86.py
index fc165da4..3e0ab1bb 100644
--- a/example/asm_x86.py
+++ b/example/asm_x86.py
@@ -30,6 +30,14 @@ main:
   CALL toto
 toto:
   POP  EDI
+
+  PUSH 0
+  FLD1
+  FLD1
+  FADD ST, ST(1)
+  FIST  DWORD PTR [ESP]
+  POP  EAX
+
   MOV  ESP, EBP
   POP  EBP
   RET