3 This file is part of the AVR-Huffman.
4 Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include "avr-asm-macros.S"
21 /******************************************************************************/
25 .global cli_hexdump_byte
30 ldi r30, lo8(hexdigit_tab_P)
31 ldi r31, hi8(hexdigit_tab_P)
39 ldi r30, lo8(hexdigit_tab_P)
40 ldi r31, hi8(hexdigit_tab_P)
48 /******************************************************************************/
51 * param length: r22:r23
66 rcall cli_hexdump_byte
77 /******************************************************************************/
80 * param length: r22:r23
82 .global cli_hexdump_rev
97 rcall cli_hexdump_byte
102 /******************************************************************************/
104 * param data: r24:r25
105 * param length: r22:r23
120 rcall cli_hexdump_byte
129 /******************************************************************************/
130 /* void cli_hexdump_block(const void* data, uint16_t length, uint8_t indent, uint8_t width)
131 * param data: r24:r25
132 * param length: r22:r23
143 .global cli_hexdump_block