Created
December 23, 2014 13:07
-
-
Save ssvb/4d8e19f8497f5c8886ec to your computer and use it in GitHub Desktop.
Test of the radare2 graphviz graphs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* gcc -c test.S */ | |
#ifdef __arm__ | |
.syntax unified | |
#define sub subs | |
#define jz beq | |
#define jmp b | |
#define ret bx lr | |
#define eax r0 | |
#else | |
.intel_syntax | |
#endif | |
mov %eax, 100 | |
0: | |
sub %eax, 1 | |
jz 2f | |
jmp 0b | |
nop | |
nop | |
nop | |
1: | |
nop | |
jmp 1b | |
nop | |
nop | |
nop | |
2: | |
ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment