]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/cli-core.S
fixing some decryption bugs in GCM128
[avr-crypto-lib.git] / test_src / cli-core.S
index 573997e66f78d7e7f179ad6460594c47654ddd24..43dcb6c21c0995576ce4a8acbffdcce6ca0c4e1f 100644 (file)
@@ -24,7 +24,7 @@
 /******************************************************************************/
 /* uint16_t max_cmd_length(PGM_VOID_P cmdlist){
        uint16_t t,ret=0;
-       charstr;
+       char *str;
        for(;;){
                str = (char*)pgm_read_word(cmdlist);
                cmdlist = (uint8_t*)cmdlist + CMDLIST_ENTRY_SIZE;
@@ -134,7 +134,7 @@ pecho:
 .asciz "\r\necho is o"
 
 /******************************************************************************/
-/* int8_t search_and_call(charcmd, uint16_t maxcmdlength, PGM_VOID_P cmdlist)
+/* int8_t search_and_call(char *cmd, uint16_t maxcmdlength, PGM_VOID_P cmdlist)
  *    param cmd:          r24:r25
  *    param maxcmdlength: r22:r23
  *    param cmdlist:      r20:r21
@@ -257,7 +257,7 @@ nocommand_str:
 .asciz "\r\ncommand not found, try 'help'"
 
 /******************************************************************************/
-/* void cli_option_listing(charbuffer, PGM_VOID_P cmdlist)
+/* void cli_option_listing(char *buffer, PGM_VOID_P cmdlist)
  *   param buffer:    r24:r25
  *   param cmdlist:   r22:r23
  */
@@ -392,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"