]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/cli-core.S
some minor improvments and bug fixes
[avr-crypto-lib.git] / test_src / cli-core.S
index 69671f6339320ba59b57d75efd25ac2cbdd61f94..2c572e53e5b31ff0c1be3b692dabb7f9604b78d4 100644 (file)
@@ -39,6 +39,7 @@
  */
 TMP_CNT_0 = 26
 TMP_CNT_1 = 27
+
 .global max_cmd_length
 max_cmd_length:
        movw r30, r24
@@ -345,7 +346,7 @@ cli_auto_help:
        movw TMP_0, r24
        rcall cli_putstr_P
        movw r24, TMP_0
-       call strlen_P
+       call strlen_PF
        movw TMP_0, LEN_0
        sub TMP_0, r24
        sbc TMP_1, r25
@@ -391,6 +392,7 @@ cli_auto_help:
 99:
        pop_range 28, 29
        pop_range 14, 17
+       ori r24, 1
        ret
 ahelphead_str:
 .asciz "\r\n[auto help] available commands:\r\n <command> - <params> - <address>\r\n"