Skip to content

Instantly share code, notes, and snippets.

@checko
Created October 8, 2012 10:22
Show Gist options
  • Save checko/3851833 to your computer and use it in GitHub Desktop.
Save checko/3851833 to your computer and use it in GitHub Desktop.
00020848 <strcat>:
char *
strcat(char *s, const char *append)
{
char *save = s;
for (; *s; ++s);
20848: b510 push {r4, lr}
2084a: 4602 mov r2, r0
2084c: e000 b.n 20850 <strcat+0x8>
2084e: 3201 adds r2, #1
20850: 7813 ldrb r3, [r2, #0]
20852: 2b00 cmp r3, #0
20854: d1fb bne.n 2084e <strcat+0x6>
while ((*s++ = *append++) != '\0');
20856: 5ccc ldrb r4, [r1, r3]
20858: 54d4 strb r4, [r2, r3]
2085a: 3301 adds r3, #1
2085c: 2c00 cmp r4, #0
2085e: d1fa bne.n 20856 <strcat+0xe>
return(save);
}
20860: bd10 pop {r4, pc}
20862: bf00 nop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment