about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2014-07-09 15:32:04 +0200
committerserpilliere <devnull@localhost>2014-07-09 15:32:04 +0200
commit45dce4db4fe27a3e4a32ddef7caa8aa62d1a8457 (patch)
tree8605f73ce0e8a4c52c80ced346c8570d4ee44c0e
parent92d3b2d51df594d9bc921262138c9255e4bf586b (diff)
downloadmiasm-45dce4db4fe27a3e4a32ddef7caa8aa62d1a8457.tar.gz
miasm-45dce4db4fe27a3e4a32ddef7caa8aa62d1a8457.zip
Arm: improve arm example
-rw-r--r--example/asm_arm.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/example/asm_arm.py b/example/asm_arm.py
index a848f22b..a3e85cde 100644
--- a/example/asm_arm.py
+++ b/example/asm_arm.py
@@ -30,7 +30,8 @@ main:
   MOV    R1, mystrend & 0xffff
   ORR    R1, R1, mystrend & 0xffff0000
 xxx:
-  LDR    R2, [PC, key-(xxx+8)]
+  LDR    R2, [PC, key-$]
+  LDR    R6, [PC, test-$]
 loop:
   LDRB   R3, [R0]
   EOR    R3, R3, R2
@@ -53,6 +54,8 @@ mystr:
 .string "test string"
 mystrend:
 .long 0
+test:
+.long mystrend - key + 0x1122
 ''')
 
 # fix shellcode addr