We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ced896 commit f631c32Copy full SHA for f631c32
1 file changed
tests/binaries/patched_binary_translate_add.S
@@ -1,18 +1,29 @@
1
-sub sp, sp, -32
+.text
2
+
3
+.global _start
4
5
+_start:
6
+bl main
7
+mov x8, #93
8
+svc #0
9
10
+main:
11
+sub sp, sp, 32
12
str lr, [sp, 24]
-str x5, [sp, 16]
-add w5, wsp, 32
13
+str fp, [sp, 16]
14
+add fp, sp, 32
15
mov x12, 3
-str w12, [x5, -20]
16
+str w12, [fp, -20]
17
mov x12, 4
-str w12, [x5, -24]
-ldr w12, [x5, -20]
18
+str w12, [fp, -24]
19
+ldr w12, [fp, -20]
20
add x11, x12, 0
-ldr w12, [x5, -24]
21
+ldr w12, [fp, -24]
22
add w12, w11, w12
23
sxtw x12, w12
-add x7, x12, 0
24
+add x0, x12, 0
25
ldr lr, [sp, 24]
-ldr x5, [sp, 16]
26
+ldr fp, [sp, 16]
27
add sp, sp, 32
-blr lr
28
+ret
29
0 commit comments