***************************************************************************/
-// Build : arm-eabi-gcc -c stm32lx.S
+// Build : arm-eabi-gcc -c stm32lx.s
.text
.syntax unified
.cpu cortex-m3
/*
r0 - source address
r1 - destination address
- r2 - count
+ r2 - output, remaining word count
*/
// Go to compare
// Test r2
cmp r2, #0
// Loop if not zero
- bcc.n write_word
+ bhi write_word
// Set breakpoint to exit
bkpt #0x00