about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--example/asm_arm_sc.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/example/asm_arm_sc.py b/example/asm_arm_sc.py
index 824145fa..3c96742d 100644
--- a/example/asm_arm_sc.py
+++ b/example/asm_arm_sc.py
@@ -31,14 +31,20 @@ blocs, symbol_pool = parse_asm.parse_txt(mn_arm, 'arm', '''
 main:
     MOV R1, R0
     MOV R2, 0x100
+    LDR R3, [PC, mykey1-$]
 loop:
     ADD R2, R1, R2
     ADD R1, R1, 1
-    CMP R1, 0x10
+    LDR R3, [PC, mykey2-$]
+    CMP R1, R3
     BEQ loop
 
     ADD R0, R1, R2
     BX LR
+mykey1:
+.long 0x1
+mykey2:
+.long 0x2
 ''')
 
 # fix shellcode addr