mirror of
https://github.com/brain-hackers/lab
synced 2026-08-24 09:23:56 +09:00
Add x1 C example / improve extract.py to extract all sections after .text
This commit is contained in:
Binary file not shown.
+14
@@ -0,0 +1,14 @@
|
||||
void main() {
|
||||
char *str = "Hello World";
|
||||
int aa = 1234;
|
||||
int i;
|
||||
for (i=0; i<999; i++) {
|
||||
asm volatile(
|
||||
"mrc p15, 0, r10, c1, c0, 0\n"
|
||||
"bic r10, #1\n"
|
||||
"mcr p15, 0, r10, c1, c0, 0\n"
|
||||
: "=r" (aa)
|
||||
);
|
||||
aa += 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
.align 2
|
||||
.global _start
|
||||
|
||||
_start:
|
||||
push {r4, lr}
|
||||
bl main
|
||||
pop {r4, pc}
|
||||
Reference in New Issue
Block a user