Skip to content

Instantly share code, notes, and snippets.

@k3170makan
Created July 15, 2018 08:58
Show Gist options
  • Select an option

  • Save k3170makan/9ae285019f90c142feca64a6bfcdd239 to your computer and use it in GitHub Desktop.

Select an option

Save k3170makan/9ae285019f90c142feca64a6bfcdd239 to your computer and use it in GitHub Desktop.
mov sp,#0x8000
ldr r4, = __bss_start
ldr r9, = __bss_end
mov r5, #0
mov r6, #0
mov r7, #0
mov r8, #0
b 2f
1:
stmia r4!, {r5-r8}
2:
cmp r4,r9
blo 1b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment