Update README
[fw/stlink] / flashloaders / stm32lx.s
index bb8f7c93f6ad77b703b3aa25a59f4eb5f131e5ee..10e5644bffc303fa0b05c85cb6f594c729240bcd 100644 (file)
@@ -25,7 +25,7 @@
  ***************************************************************************/
 
 
-// Build : arm-eabi-gcc -c stm32lx.S
+// Build : arm-eabi-gcc -c stm32lx.s
     .text
     .syntax unified
     .cpu cortex-m3
@@ -36,7 +36,7 @@
 /*
     r0 - source address
     r1 - destination address
-    r2 - count
+    r2 - output, remaining word count
 */
 
     // Go to compare
@@ -54,7 +54,7 @@ test_done:
     // Test r2
     cmp     r2, #0
     // Loop if not zero
-    bcc.n    write_word
+    bhi     write_word
 
     // Set breakpoint to exit
     bkpt    #0x00