Was just falling off the end of this function, returning a random value.
Signed-off-by: Keith Packard <keithp@keithp.com>
printf (" %02x", data[i]);
printf("\n");
memcpy(image->data + addr - image->address, data, len);
printf (" %02x", data[i]);
printf("\n");
memcpy(image->data + addr - image->address, data, len);
}
static const struct option options[] = {
}
static const struct option options[] = {
main (int argc, char **argv)
{
struct ccdbg *dbg;
main (int argc, char **argv)
{
struct ccdbg *dbg;
- uint8_t status;
- uint16_t pc;
struct ao_hex_file *hex;
struct ao_hex_image *image;
char *filename;
struct ao_hex_file *hex;
struct ao_hex_image *image;
char *filename;