Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of PololuLedStrip by
Revision 11:e00ba70ac54c, committed 2013-03-01
- Comitter:
- DavidEGrayson
- Date:
- Fri Mar 01 04:16:44 2013 +0000
- Parent:
- 10:f1bb84b97788
- Child:
- 12:b6df8ac053c8
- Commit message:
- Simplified the pushing and popping of LR.
Changed in this revision
| led_strip_write_color.s | Show annotated file Show diff for this revision Revisions of this file |
--- a/led_strip_write_color.s Fri Mar 01 04:15:35 2013 +0000
+++ b/led_strip_write_color.s Fri Mar 01 04:16:44 2013 +0000
@@ -26,9 +26,7 @@
; R13: Link Register, holds return addresses.
; Push those registers so we can restore them later.
- push {r4, r5, r6, r7}
- mov r4, lr
- push {r4}
+ push {r4, r5, r6, r7, lr}
ldrb r4, [r0, #0] ; Load red.
lsls r4, r4, #24
@@ -74,10 +72,7 @@
bne send_led_strip_bit ; Send another bit if we have not reached zero.
led_strip_asm_end
- pop {r4}
- mov lr, r4
- pop {r4, r5, r6, r7}
- bx lr
+ pop {r4, r5, r6, r7, pc}
delay_region
