input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int rename_file(gchar **location_real, gchar **location_href, char *checksum,
cr_RepomdRecord *md, GError **err) {
GQuark v6;
gchar *v7;
GQuark v8;
int x;
int xa;
int len;
gchar *location_prefix;
gchar *location_filename;
gchar *new_location_real;
gchar *new_location_href;
locatio... | static int rename_file(gchar **location_real, gchar **location_href,
char *checksum, cr_RepomdRecord *md, GError **err) {
int x, len;
gchar *location_prefix = NULL;
const gchar *location_filename = NULL;
gchar *new_location_href;
gchar *new_location_real;
assert(!err || *err == NULL)... | rename_file | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/libcreaterepo_c.so.0.16.2 | ida | O0 |
void sigint_catcher(int sig) {
char *v1;
v1 = strsignal(sig);
g_log("C_CREATEREPOLIB", 32, "%s caught: Terminating...", v1);
*global_exit_status = 1;
exit(1);
} | static void sigint_catcher(int sig) {
g_message("%s caught: Terminating...", strsignal(sig));
*global_exit_status = 1;
exit(1);
} | sigint_catcher | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/libcreaterepo_c.so.0.16.2 | ida | O0 |
int write_modified_header(int task_count, int package_count,
cr_XmlFile *cr_file, gchar *header_buf,
int header_len, GError **err) {
int bytes_written;
unsigned int package_count_string_len;
_BYTE task_count_string_len[12];
gchar *package_count_string;
gchar... | static int write_modified_header(int task_count, int package_count,
cr_XmlFile *cr_file, gchar *header_buf,
int header_len, GError **err) {
GError *tmp_err = NULL;
gchar *package_count_string;
gchar *task_count_string;
int bytes_written = 0;
in... | write_modified_header | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/libcreaterepo_c.so.0.16.2 | ida | O0 |
void write_pkg(long id, cr_XmlStruct res, cr_Package *pkg, UserData *udata) {
gboolean new_pkg;
GError *tmp_err[2];
tmp_err[1] = (GError *)__readfsqword(0x28u);
tmp_err[0] = 0;
g_mutex_lock(&udata->mutex_pri);
while (id != udata->id_pri)
g_cond_wait(&udata->cond_pri, &udata->mutex_pri);
++udata->pack... | static void write_pkg(long id, struct cr_XmlStruct res, cr_Package *pkg,
struct UserData *udata) {
GError *tmp_err = NULL;
g_mutex_lock(&(udata->mutex_pri));
while (udata->id_pri != id)
g_cond_wait(&(udata->cond_pri), &(udata->mutex_pri));
udata->package_count++;
g_free(udata->prev... | write_pkg | createrepo_c-0.16.2 | app-arch | O0/app-arch/createrepo_c-0.16.2/libcreaterepo_c.so.0.16.2 | ida | O0 |
void __cdecl ZopfliAllocHash(size_t window_size, ZopfliHash *h) {
h->head = (int *)malloc((size_t)&loc_40000);
h->prev = (unsigned __int16 *)malloc(2 * window_size);
h->hashval = (int *)malloc(4 * window_size);
h->same = (unsigned __int16 *)malloc(2 * window_size);
h->head2 = (int *)malloc((size_t)&loc_40000)... | void ZopfliAllocHash(size_t window_size, ZopfliHash *h) {
h->head = (int *)malloc(sizeof(*h->head) * 65536);
h->prev = (unsigned short *)malloc(sizeof(*h->prev) * window_size);
h->hashval = (int *)malloc(sizeof(*h->hashval) * window_size);
#ifdef ZOPFLI_HASH_SAME
h->same = (unsigned short *)malloc(sizeof(*h->s... | ZopfliAllocHash | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void __cdecl adv_mng_done(adv_mng *mng) {
free(mng->dat_ptr);
free(mng->dlt_ptr);
free(mng);
} | void adv_mng_done(adv_mng *mng) {
free(mng->dat_ptr);
free(mng->dlt_ptr);
free(mng);
} | adv_mng_done | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
unsigned int __cdecl adv_mng_frequency_get(adv_mng *mng) {
return mng->frame_frequency;
} | unsigned adv_mng_frequency_get(adv_mng *mng) { return mng->frame_frequency; } | adv_mng_frequency_get | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
unsigned int __cdecl adv_mng_height_get(adv_mng *mng) {
return mng->frame_height;
} | unsigned adv_mng_height_get(adv_mng *mng) { return mng->frame_height; } | adv_mng_height_get | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_mng *__cdecl adv_mng_init(adv_fz *f) {
unsigned int v1;
unsigned int v2;
unsigned int v3;
unsigned int type;
unsigned int size;
unsigned __int8 *data;
adv_mng *mng;
unsigned __int64 v9;
v9 = __readfsqword(0x28u);
mng = (adv_mng *)malloc(0x350u);
if (!mng)
return 0;
mng->end_flag = 0;
... | adv_mng *adv_mng_init(adv_fz *f) {
adv_mng *mng;
unsigned type;
unsigned char *data;
unsigned size;
mng = malloc(sizeof(adv_mng));
if (!mng)
goto err;
mng->end_flag = 0;
mng->pixel = 0;
mng->dat_ptr = 0;
mng->dat_size = 0;
mng->dat_line = 0;
mng->dat_x = 0;
mng->dat_y = 0;
mng->dat_wi... | adv_mng_init | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl
adv_mng_read(adv_mng *mng, unsigned int *pix_width, unsigned int *pix_height,
unsigned int *pix_pixel, unsigned __int8 **dat_ptr,
unsigned int *dat_size, unsigned __int8 **pix_ptr,
unsigned int *pix_scanline, unsigned __int8 **pal_ptr,
unsigned int *... | adv_error adv_mng_read(adv_mng *mng, unsigned *pix_width, unsigned *pix_height,
unsigned *pix_pixel, unsigned char **dat_ptr,
unsigned *dat_size, unsigned char **pix_ptr,
unsigned *pix_scanline, unsigned char **pal_ptr,
unsigned... | adv_mng_read | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl
adv_mng_read_done(adv_mng *mng, unsigned int *pix_width,
unsigned int *pix_height, unsigned int *pix_pixel,
unsigned __int8 **dat_ptr, unsigned int *dat_size,
unsigned __int8 **pix_ptr, unsigned int *pix_scanline,
unsigned __int8 ... | adv_error adv_mng_read_done(adv_mng *mng, unsigned *pix_width,
unsigned *pix_height, unsigned *pix_pixel,
unsigned char **dat_ptr, unsigned *dat_size,
unsigned char **pix_ptr, unsigned *pix_scanline,
unsigned... | adv_mng_read_done | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl adv_mng_read_signature(adv_fz *f) {
unsigned __int8 signature[8];
unsigned __int64 v3;
v3 = __readfsqword(0x28u);
if (fzread(signature, 8u, 1u, f) == 1) {
if (!memcmp(signature, MNG_Signature, 8u)) {
return 0;
} else {
error_set("Invalid MNG signature");
return -1;
... | adv_error adv_mng_read_signature(adv_fz *f) {
unsigned char signature[8];
if (fzread(signature, 8, 1, f) != 1) {
error_set("Error reading the signature");
return -1;
}
if (memcmp(signature, MNG_Signature, 8) != 0) {
error_set("Invalid MNG signature");
return -1;
}
return 0;
} | adv_mng_read_signature | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
unsigned int __cdecl adv_mng_width_get(adv_mng *mng) {
return mng->frame_width;
} | unsigned adv_mng_width_get(adv_mng *mng) { return mng->frame_width; } | adv_mng_width_get | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl adv_mng_write_fram(unsigned int tick, adv_fz *f,
unsigned int *count) {
int fi;
uint8 fram[10];
unsigned __int64 v7;
v7 = __readfsqword(0x28u);
fi = tick;
if (!tick)
fi = 1;
fram[0] = 1;
fram[1] = 0;
fram[2] = 2;
fram[3] = 0;
fram[4] = 0;... | adv_error adv_mng_write_fram(unsigned tick, adv_fz *f, unsigned *count) {
uint8 fram[10];
unsigned fi;
fi = tick;
if (fi < 1)
fi = 1;
fram[0] = 1;
fram[1] = 0;
fram[2] = 2;
fram[3] = 0;
fram[4] = 0;
fram[5] = 0;
be_uint32_write(fram + 6, fi);
if (adv_png_write_chunk(f, ADV_MNG_CN_FRAM, fr... | adv_mng_write_fram | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl adv_mng_write_mend(adv_fz *f, unsigned int *count) {
if (adv_png_write_chunk(f, 0x4D454E44u, 0, 0, count))
return -1;
else
return 0;
} | adv_error adv_mng_write_mend(adv_fz *f, unsigned *count) {
if (adv_png_write_chunk(f, ADV_MNG_CN_MEND, 0, 0, count) != 0)
return -1;
return 0;
} | adv_mng_write_mend | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl adv_mng_write_mhdr(unsigned int pix_width,
unsigned int pix_height,
unsigned int frequency, adv_bool is_lc,
adv_fz *f, unsigned int *count) {
int simplicity;
unsigned __int8 mhdr[40];
u... | adv_error adv_mng_write_mhdr(unsigned pix_width, unsigned pix_height,
unsigned frequency, adv_bool is_lc, adv_fz *f,
unsigned *count) {
uint8 mhdr[28];
unsigned simplicity;
simplicity = (1 << 0) | (1 << 6);
if (is_lc)
simplicity |= (1 << 1);
mems... | adv_mng_write_mhdr | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl adv_mng_write_signature(adv_fz *f, unsigned int *count) {
if (fzwrite(MNG_Signature, 8u, 1u, f) == 1) {
if (count)
*count += 8;
return 0;
} else {
error_set("Error writing the signature");
return -1;
}
} | adv_error adv_mng_write_signature(adv_fz *f, unsigned *count) {
if (fzwrite(MNG_Signature, 8, 1, f) != 1) {
error_set("Error writing the signature");
return -1;
}
if (count)
*count += 8;
return 0;
} | adv_mng_write_signature | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void convert_mng(adv_fz *f_in, adv_fz *f_out) {
if (adv_mng_read_signature(f_in))
throw_png_error();
if (adv_mng_write_signature(f_out, 0))
throw_png_error();
convert_dat(f_in, f_out, 0x4D454E44u);
} | void convert_mng(adv_fz *f_in, adv_fz *f_out) {
if (adv_mng_read_signature(f_in) != 0) {
throw_png_error();
}
if (adv_mng_write_signature(f_out, 0) != 0) {
throw_png_error();
}
convert_dat(f_in, f_out, ADV_MNG_CN_MEND);
} | convert_mng | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void convert_png(adv_fz *f_in, adv_fz *f_out) {
if (adv_png_read_signature(f_in))
throw_png_error();
if (adv_png_write_signature(f_out, 0))
throw_png_error();
convert_dat(f_in, f_out, 0x49454E44u);
} | void convert_png(adv_fz *f_in, adv_fz *f_out) {
if (adv_png_read_signature(f_in) != 0) {
throw_png_error();
}
if (adv_png_write_signature(f_out, 0) != 0) {
throw_png_error();
}
convert_dat(f_in, f_out, ADV_PNG_CN_IEND);
} | convert_png | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void copy_zero(adv_fz *f_in, adv_fz *f_out) {
error *exception;
error *v3;
error *v4;
error *v5;
unsigned char c;
error v7;
unsigned long v8;
v8 = __readfsqword(0x28u);
do {
if (fzread(&c, 1u, 1u, f_in) != 1) {
exception = (error *)__cxa_allocate_exception(0x68u);
error_error(&v7, "vo... | void copy_zero(adv_fz *f_in, adv_fz *f_out) {
while (1) {
unsigned char c;
if (fzread(&c, 1, 1, f_in) != 1) {
throw error() << "Error reading";
}
if (fzwrite(&c, 1, 1, f_out) != 1) {
throw error() << "Error writing";
}
if (!c)
break;
}
} | copy_zero | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
size_t __cdecl deflate_compress_greedy(libdeflate_compressor *c, const u8 *in,
size_t in_nbytes, u8 *out,
size_t out_nbytes_avail) {
unsigned int nice_match_length;
signed __int64 v6;
int v7;
unsigned int max_search_depth;
__int64 v... | static size_t deflate_compress_greedy(struct libdeflate_compressor *restrict c,
const u8 *restrict in, size_t in_nbytes,
u8 *restrict out,
size_t out_nbytes_avail) {
const u8 *in_next = in;
const u8 *in... | deflate_compress_greedy | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
size_t __cdecl deflate_compress_lazy(libdeflate_compressor *c, const u8 *in,
size_t in_nbytes, u8 *out,
size_t out_nbytes_avail) {
unsigned int nice_match_length;
signed __int64 v6;
int v7;
unsigned int max_search_depth;
__int64 v9;
_... | static size_t deflate_compress_lazy(struct libdeflate_compressor *restrict c,
const u8 *restrict in, size_t in_nbytes,
u8 *restrict out, size_t out_nbytes_avail) {
const u8 *in_next = in;
const u8 *in_end = in_next + in_nbytes;
struct deflate... | deflate_compress_lazy | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
size_t __cdecl deflate_compress_near_optimal(libdeflate_compressor *c,
const u8 *in, size_t in_nbytes,
u8 *out, size_t out_nbytes_avail) {
size_t v6;
unsigned int nice_match_length;
signed __int64 v8;
char v9;
signed __i... | static size_t
deflate_compress_near_optimal(struct libdeflate_compressor *restrict c,
const u8 *restrict in, size_t in_nbytes,
u8 *restrict out, size_t out_nbytes_avail) {
const u8 *in_next = in;
const u8 *in_end = in_next + in_nbytes;
struct deflate_out... | deflate_compress_near_optimal | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void __cdecl deflate_flush_block(libdeflate_compressor *c,
deflate_output_bitstream *os,
const u8 *block_begin, u32 block_length,
bool is_final_block, bool use_item_list) {
u32 v6;
u32 dynamic_cost;
u32 dynamic_cost... | static void deflate_flush_block(struct libdeflate_compressor *restrict c,
struct deflate_output_bitstream *restrict os,
const u8 *restrict block_begin,
u32 block_length, bool is_final_block,
b... | deflate_flush_block | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void __cdecl deflate_optimize_block(libdeflate_compressor *c, u32 block_length,
const lz_match *cache_ptr,
bool is_first_block) {
u32 v4;
unsigned int num_passes_remaining;
u32 i;
num_passes_remaining = c->p.n.num_optim_passes;
for (i = ... | static void deflate_optimize_block(struct libdeflate_compressor *c,
u32 block_length,
const struct lz_match *cache_ptr,
bool is_first_block) {
unsigned num_passes_remaining = c->p.n.num_optim_passes;
u32 i;
f... | deflate_optimize_block | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
size_t __cdecl fzread(void *buffer, size_t size, size_t number, adv_fz *f) {
size_t numbera;
size_t total_size;
size_t total_sizea;
char *run;
size_t runa;
numbera = number;
if (f->type == 1)
return fread_lock(buffer, size, number, f->f);
total_size = number * size;
if (number * size + f->virtual... | size_t fzread(void *buffer, size_t size, size_t number, adv_fz *f) {
if (f->type == fz_file) {
return fread_lock(buffer, size, number, f->f);
} else {
size_t total_size;
total_size = size * number;
if (f->virtual_pos + total_size >= f->virtual_size) {
number = (f->virtual_size - f->virtual_po... | fzread | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void __cdecl mng_delta_addition(adv_mng *mng, unsigned int pos_x,
unsigned int pos_y, unsigned int width,
unsigned int height) {
unsigned __int8 *v5;
unsigned __int8 v6;
unsigned __int8 *v7;
unsigned int i;
unsigned int j;
unsigned int bytes_pe... | static void mng_delta_addition(adv_mng *mng, unsigned pos_x, unsigned pos_y,
unsigned width, unsigned height) {
unsigned i, j;
unsigned bytes_per_run = width * mng->pixel;
unsigned delta_bytes_per_scanline = bytes_per_run + 1;
unsigned char *p0 =
mng->dat_ptr + pos_y * mng->... | mng_delta_addition | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void __cdecl mng_delta_replacement(adv_mng *mng, unsigned int pos_x,
unsigned int pos_y, unsigned int width,
unsigned int height) {
unsigned int i;
unsigned int bytes_per_run;
unsigned __int8 *p0;
unsigned __int8 *p1;
bytes_per_run = width... | static void mng_delta_replacement(adv_mng *mng, unsigned pos_x, unsigned pos_y,
unsigned width, unsigned height) {
unsigned i;
unsigned bytes_per_run = width * mng->pixel;
unsigned delta_bytes_per_scanline = bytes_per_run + 1;
unsigned char *p0 =
mng->dat_ptr + pos_y * mn... | mng_delta_replacement | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void __cdecl mng_import(adv_mng *mng, unsigned int *pix_width,
unsigned int *pix_height, unsigned int *pix_pixel,
unsigned __int8 **dat_ptr, unsigned int *dat_size,
unsigned __int8 **pix_ptr, unsigned int *pix_scanline,
unsi... | static void mng_import(adv_mng *mng, unsigned *pix_width, unsigned *pix_height,
unsigned *pix_pixel, unsigned char **dat_ptr,
unsigned *dat_size, unsigned char **pix_ptr,
unsigned *pix_scanline, unsigned char **pal_ptr,
unsigned... | mng_import | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl mng_read(adv_mng *mng, unsigned int *pix_width,
unsigned int *pix_height, unsigned int *pix_pixel,
unsigned __int8 **dat_ptr, unsigned int *dat_size,
unsigned __int8 **pix_ptr,
unsigned int *pix... | static adv_error mng_read(adv_mng *mng, unsigned *pix_width,
unsigned *pix_height, unsigned *pix_pixel,
unsigned char **dat_ptr, unsigned *dat_size,
unsigned char **pix_ptr, unsigned *pix_scanline,
unsigned char **pa... | mng_read | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl mng_read_defi(adv_mng *mng, unsigned __int8 *defi,
unsigned int defi_size) {
if (defi_size == 4 || defi_size == 12) {
if (be_uint16_read(defi) == 1) {
if (defi[2]) {
error_unsupported_set("Unsupported visible type in DEFI chunk");
return -1;
... | static adv_error mng_read_defi(adv_mng *mng, unsigned char *defi,
unsigned defi_size) {
unsigned id;
if (defi_size != 4 && defi_size != 12) {
error_unsupported_set("Unsupported DEFI size");
return -1;
}
id = be_uint16_read(defi + 0);
if (id != 1) {
error_unsupporte... | mng_read_defi | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl mng_read_delta(adv_mng *mng, adv_fz *f, unsigned __int8 *dhdr,
unsigned int dhdr_size) {
unsigned int v4;
unsigned int v5;
unsigned int type;
unsigned int size;
unsigned int width;
unsigned int height;
unsigned int pos_x;
unsigned int pos_y;
unsigned ... | static adv_error mng_read_delta(adv_mng *mng, adv_fz *f, unsigned char *dhdr,
unsigned dhdr_size) {
unsigned type;
unsigned char *data;
unsigned size;
unsigned width;
unsigned height;
unsigned pos_x;
unsigned pos_y;
unsigned id;
unsigned ope;
if (dhdr_size != 4 && dh... | mng_read_delta | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl mng_read_ihdr(adv_mng *mng, adv_fz *f,
const unsigned __int8 *ihdr,
unsigned int ihdr_size) {
unsigned __int8 *v4;
unsigned __int8 *v5;
unsigned __int8 *v6;
unsigned __int8 *v7;
unsigned __int8 *v8;
unsigned __int8 *v9;
unsi... | static adv_error mng_read_ihdr(adv_mng *mng, adv_fz *f,
const unsigned char *ihdr, unsigned ihdr_size) {
unsigned type;
unsigned char *data;
unsigned size;
unsigned long dat_size;
unsigned bit_per_pixel;
if (ihdr_size != 13) {
error_set("Invalid IHDR size");
goto err;... | mng_read_ihdr | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
adv_error __cdecl mng_read_move(adv_mng *mng, adv_fz *f, unsigned __int8 *move,
unsigned int move_size) {
if (move_size != 13) {
error_unsupported_set("Unsupported MOVE size in MOVE chunk");
return -1;
}
if (be_uint16_read(move) != 1 || be_uint16_read(move + 2) != 1) {
... | static adv_error mng_read_move(adv_mng *mng, adv_fz *f, unsigned char *move,
unsigned move_size) {
unsigned id;
if (move_size != 13) {
error_unsupported_set("Unsupported MOVE size in MOVE chunk");
return -1;
}
id = be_uint16_read(move + 0);
if (id != 1) {
error_uns... | mng_read_move | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void rezip_all(int argc, char **argv) {
std__Setw v2;
long v3;
long v4;
std__Setw v5;
long v6;
long v7;
std__Setw v8;
long v9;
long v10;
char v11;
int i;
unsigned int perc;
unsigned long total_0;
unsigned long total_1;
std_string file;
unsigned long v17;
v17 = __readfsqword(0x28u);
... | void rezip_all(int argc, char *argv[]) {
unsigned long long total_0 = 0;
unsigned long long total_1 = 0;
for (int i = 0; i < argc; ++i)
rezip_single(argv[i], total_0, total_1);
if (!opt_quiet) {
cout << setw(12) << total_0 << setw(12) << total_1 << " ";
if (total_0) {
unsigned perc = total_1... | rezip_all | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
void usage() {
long v0;
long v1;
long v2;
long v3;
long v4;
long v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
long v13;
version();
v0 = std_operator < < <std_char_traits<char>>(
&std_cout, "Usage: advpng [options] [FILES...]");
std_... | void usage() {
version();
cout << "Usage: advpng [options] [FILES...]" << endl;
cout << endl;
cout << "Modes:" << endl;
cout << " " SWITCH_GETOPT_LONG("-z, --recompress ",
"-z") " Recompress the specified files"
<< endl;
cout << "Options:" << endl;
cout << " ... | usage | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advdef | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
const char **v4;
int v5;
const char **v6;
const char *v7;
char v8;
FILE *v9;
FILE *v11;
long v12;
int v13;
const char *v14;
long v15;
BYTE options;
int v17;
int v18;
char v19;
int *v20;
char *v21;
char *v22;
long ... | int main(int argc, char *argv[]) {
CKDDASD_DEVHDR devhdr;
CCKDDASD_DEVHDR cdevhdr;
int level = 0;
int force = 0;
int rc;
int i;
int bigend;
DEVBLK devblk;
DEVBLK *dev = &devblk;
INITIALIZE_UTILITY("cckdswap");
for (argc--, argv++; argc > 0; argc--, argv++) {
if (**argv != '-')
break;
... | main | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckdswap | ida | O0 |
int syntax() {
fwrite("\n"
"cckdswap [-v] [-f] file1 [file2 ... ]\n"
"\n"
" -v display version and exit\n"
"\n"
" -f force check even if OPENED bit is on\n"
"\n"
" chkdsk level is a digit 0 - 3:\n"
" -0... | int syntax() {
fprintf(stderr, "\ncckdswap [-v] [-f] file1 [file2 ... ]\n"
"\n"
" -v display version and exit\n"
"\n"
" -f force check even if OPENED bit is on\n"
"\n"
" chkds... | syntax | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckdswap | ida | O0 |
int do_cat_cards(BYTE *buf, int len, unsigned long optflags) {
int v3;
BYTE *v4;
unsigned long v5;
unsigned int v6;
char v8[88];
unsigned long v9;
v9 = __readfsqword(0x28u);
v3 = len % 80;
if (len % 80) {
v3 = -1;
__fprintf_chk(
stderr, 1,
"HHCDT002E Can't make 80 column card ... | int do_cat_cards(BYTE *buf, int len, unsigned long optflags) {
if (len % 80 != 0) {
fprintf(
stderr,
_("HHCDT002E Can't make 80 column card images from block length %d\n"),
len);
return -1;
}
while (len) {
char card[81];
make_asciiz(card, sizeof(card), buf, (optflags & OPT... | do_cat_cards | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcat | ida | O0 |
int do_cat_nonpds(CIFBLK *cif, DSXTENT *extent, int noext,
unsigned long optflags) {
fwrite("HHCDT004E non-PDS-members not yet supported\n", 1u, 0x2Cu, stderr);
return -1;
} | int do_cat_nonpds(CIFBLK *cif, DSXTENT *extent, int noext,
unsigned long optflags) {
UNREFERENCED(cif);
UNREFERENCED(extent);
UNREFERENCED(noext);
UNREFERENCED(optflags);
fprintf(stderr, _("HHCDT004E non-PDS-members not yet supported\n"));
return -1;
} | do_cat_nonpds | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcat | ida | O0 |
int do_cat_pdsmember(CIFBLK *cif, DSXTENT *extent, int noext, char *pdsmember,
unsigned long optflags) {
unsigned int v6;
unsigned int v7;
int v8;
int result;
int cyl;
int head;
int len;
BYTE *blkptr;
BYTE dirblk[256];
unsigned long v17;
v6 = 0;
v7 = 1;
v17 = __readfsqwor... | int do_cat_pdsmember(CIFBLK *cif, DSXTENT *extent, int noext, char *pdsmember,
unsigned long optflags) {
int rc, trk, rec;
trk = 0;
rec = 1;
while (1) {
BYTE *blkptr;
BYTE dirblk[256];
int cyl, head, len;
#ifdef EXTERNALGUI
if (extgui)
fprintf(stderr, "CTRK=%d\n", tr... | do_cat_pdsmember | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcat | ida | O0 |
int end_of_track(BYTE *p) {
int result;
result = 0;
if (*p == 0xFF && p[1] == 0xFF && p[2] == 0xFF && p[3] == 0xFF &&
p[4] == 0xFF && p[5] == 0xFF && p[6] == 0xFF)
return p[7] == 0xFF;
return result;
} | int end_of_track(BYTE *p) {
return p[0] == 0xff && p[1] == 0xff && p[2] == 0xff && p[3] == 0xff &&
p[4] == 0xff && p[5] == 0xff && p[6] == 0xff && p[7] == 0xff;
} | end_of_track | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcat | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
const char **v4;
const char **v5;
const char **v6;
char *v7;
CIFBLK *v8;
int v9;
const char *v10;
const char *v11;
const char **v12;
int v13;
FILE *v15;
if (argc <= 0) {
memset(&sysblk, 0, 0xDBE0u);
pthread_attr_init(&... | int main(int argc, char **argv) {
int rc = 0;
CIFBLK *cif = 0;
char *fn, *sfn;
INITIALIZE_UTILITY("dasdcat");
display_version(stderr, "Hercules DASD cat program ", FALSE);
if (argc < 2) {
fprintf(
stderr,
"Usage: dasdcat [-i dasd_image [sf=shadow-file-name] dsname...]...\n");
fpri... | main | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcat | ida | O0 |
int process_dirblk(CIFBLK *cif, int noext, DSXTENT *extent, BYTE *dirblk,
char *pdsmember, unsigned long optflags) {
int v6;
unsigned long v8;
int v9;
BYTE *v10;
int v11;
char memname[9];
char memname_lc[9];
unsigned long v16;
v6 = (unsigned short)__ROL2__(*(_WORD *)dirblk, 8) - 2;... | int process_dirblk(CIFBLK *cif, int noext, DSXTENT extent[], BYTE *dirblk,
char *pdsmember, unsigned long optflags) {
int rc;
int dirrem;
char memname[9];
dirrem = (dirblk[0] << 8) | dirblk[1];
if (dirrem < 2 || dirrem > 256) {
fprintf(stderr, _("HHCDT003E Directory block byte count is... | process_dirblk | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcat | ida | O0 |
int process_member(CIFBLK *cif, int noext, DSXTENT *extent, BYTE *ttr,
unsigned long optflags) {
short v8;
unsigned int v9;
unsigned int v10;
int v11;
int v12;
BYTE *v13;
long v14;
unsigned char v15;
int len;
int cyl;
int head;
BYTE *p[9];
p[1] = (BYTE *)__readfsqword(0x28u... | int process_member(CIFBLK *cif, int noext, DSXTENT extent[], BYTE *ttr,
unsigned long optflags) {
int rc, trk, len, cyl, head, rec;
BYTE *buf;
set_codepage(NULL);
trk = (ttr[0] << 8) | ttr[1];
rec = ttr[2];
while (1) {
rc = convert_tt(trk, noext, extent, cif->heads, &cyl, &head);
... | process_member | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcat | ida | O0 |
void dump_beta128(libspectrum_snap *snap) {
int v1;
int v2;
int v3;
int v4;
int v5;
unsigned char v6;
unsigned char v7;
unsigned char v8;
unsigned char v9;
unsigned char v10;
libspectrum_byte *rom_data;
if ((unsigned int)libspectrum_snap_beta_active(snap)) {
puts("\nBETA 128");
v1 = lib... | static void dump_beta128(libspectrum_snap *snap) {
libspectrum_byte *rom_data;
if (!libspectrum_snap_beta_active(snap))
return;
printf("\nBETA 128\n");
printf("Beta 128 paged: %d\n", libspectrum_snap_beta_paged(snap));
printf("Beta 128 autoboot: %d\n", libspectrum_snap_beta_autoboot(snap));
printf("Be... | dump_beta128 | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_covox(libspectrum_snap *snap) {
unsigned char v1;
if ((unsigned int)libspectrum_snap_covox_active(snap)) {
puts("\nCOVOX");
v1 = libspectrum_snap_covox_dac(snap);
printf("Covox dac: 0x%02X\n", v1);
}
} | static void dump_covox(libspectrum_snap *snap) {
if (!libspectrum_snap_covox_active(snap))
return;
printf("\nCOVOX\n");
printf("Covox dac: 0x%02X\n", libspectrum_snap_covox_dac(snap));
} | dump_covox | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_divide(libspectrum_snap *snap) {
int v1;
unsigned char v2;
int v3;
size_t i;
libspectrum_byte *eprom_data;
size_t pages;
libspectrum_byte *ram_data;
if ((unsigned int)libspectrum_snap_divide_active(snap)) {
puts("\nDIVIDE");
v1 = libspectrum_snap_divide_paged(snap);
printf("DivIDE... | static void dump_divide(libspectrum_snap *snap) {
libspectrum_byte *eprom_data, *ram_data;
size_t pages, i;
if (!libspectrum_snap_divide_active(snap))
return;
printf("\nDIVIDE\n");
printf("DivIDE paged: %d\n", libspectrum_snap_divide_paged(snap));
printf("DivIDE control: 0x%02X\n", libspectrum_snap_di... | dump_divide | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_divmmc(libspectrum_snap *snap) {
int v1;
unsigned char v2;
int v3;
size_t i;
libspectrum_byte *eprom_data;
size_t pages;
libspectrum_byte *ram_data;
if ((unsigned int)libspectrum_snap_divmmc_active(snap)) {
puts("\nDIVMMC");
v1 = libspectrum_snap_divmmc_paged(snap);
printf("DivMMC... | static void dump_divmmc(libspectrum_snap *snap) {
libspectrum_byte *eprom_data, *ram_data;
size_t pages, i;
if (!libspectrum_snap_divmmc_active(snap))
return;
printf("\nDIVMMC\n");
printf("DivMMC paged: %d\n", libspectrum_snap_divmmc_paged(snap));
printf("DivMMC control: 0x%02X\n", libspectrum_snap_di... | dump_divmmc | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_interface1(libspectrum_snap *snap) {
int v1;
int v2;
int v3;
libspectrum_byte *rom_data;
long rom_length;
if ((unsigned int)libspectrum_snap_interface1_active(snap)) {
puts("\nINTERFACE I");
v1 = libspectrum_snap_interface1_paged(snap);
printf("Interface I paged: %d\n", v1);
v2 = ... | static void dump_interface1(libspectrum_snap *snap) {
libspectrum_byte *rom_data;
size_t rom_length;
if (!libspectrum_snap_interface1_active(snap))
return;
printf("\nINTERFACE I\n");
printf("Interface I paged: %d\n", libspectrum_snap_interface1_paged(snap));
printf("Interface I custom rom: %d\n",
... | dump_interface1 | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_interface2(libspectrum_snap *snap) {
libspectrum_byte *rom_data;
if ((unsigned int)libspectrum_snap_interface2_active(snap)) {
puts("\nINTERFACE II");
rom_data = (libspectrum_byte *)libspectrum_snap_interface2_rom(snap, 0);
if (rom_data)
print_memory_block("Interface_II_rom", rom_data, ... | static void dump_interface2(libspectrum_snap *snap) {
libspectrum_byte *rom_data;
size_t rom_length;
if (!libspectrum_snap_interface2_active(snap))
return;
printf("\nINTERFACE II\n");
rom_data = libspectrum_snap_interface2_rom(snap, 0);
rom_length = 0x4000;
if (rom_data)
print_memory_block("Inte... | dump_interface2 | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_multiface(libspectrum_snap *snap) {
int v1;
int v2;
int v3;
int v4;
long ram_length;
libspectrum_byte *ram_data;
if ((unsigned int)libspectrum_snap_multiface_active(snap)) {
puts("\nMULTIFACE");
if ((unsigned int)libspectrum_snap_multiface_model_one(snap)) {
puts("Multiface model:... | static void dump_multiface(libspectrum_snap *snap) {
libspectrum_byte *ram_data;
size_t ram_length;
if (!libspectrum_snap_multiface_active(snap))
return;
printf("\nMULTIFACE\n");
if (libspectrum_snap_multiface_model_one(snap))
printf("Multiface model: Multiface One\n");
else if (libspectrum_snap_... | dump_multiface | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_opus(libspectrum_snap *snap) {
int v1;
int v2;
unsigned char v3;
unsigned char v4;
unsigned char v5;
unsigned char v6;
unsigned char v7;
unsigned char v8;
int v9;
int v10;
unsigned char v11;
unsigned char v12;
unsigned char v13;
unsigned char v14;
libspectrum_byte *rom_data;
li... | static void dump_opus(libspectrum_snap *snap) {
libspectrum_byte *rom_data, *ram_data;
if (!libspectrum_snap_opus_active(snap))
return;
printf("\nOPUS DISCOVERY\n");
printf("Opus Discovery paged: %d\n", libspectrum_snap_opus_paged(snap));
printf("Opus Discovery custom rom: %d\n",
libspectrum_sn... | dump_opus | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_plusd(libspectrum_snap *snap) {
int v1;
int v2;
unsigned char v3;
int v4;
int v5;
unsigned char v6;
unsigned char v7;
unsigned char v8;
unsigned char v9;
libspectrum_byte *rom_data;
libspectrum_byte *ram_data;
if ((unsigned int)libspectrum_snap_plusd_active(snap)) {
puts("\n+D");
... | static void dump_plusd(libspectrum_snap *snap) {
libspectrum_byte *rom_data, *ram_data;
if (!libspectrum_snap_plusd_active(snap))
return;
printf("\n+D\n");
printf("+D paged: %d\n", libspectrum_snap_plusd_paged(snap));
printf("+D custom rom: %d\n", libspectrum_snap_plusd_custom_rom(snap));
rom_data = l... | dump_plusd | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_slt(libspectrum_snap *snap) {
int v1;
int i;
int ia;
int have_slt;
libspectrum_byte *slt_data;
libspectrum_byte *slt_dataa;
long slt_length;
have_slt = 0;
for (i = 0; i <= 255; ++i) {
if (libspectrum_snap_slt_length(snap, (unsigned int)i)) {
have_slt = 1;
break;
}
}
... | static void dump_slt(libspectrum_snap *snap) {
libspectrum_byte *slt_data;
size_t slt_length;
int i, have_slt;
have_slt = 0;
for (i = 0; i < SNAPSHOT_SLT_PAGES; i++) {
if (libspectrum_snap_slt_length(snap, i)) {
have_slt = 1;
break;
}
}
if (!have_slt)
return;
printf("\nSLT\n")... | dump_slt | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_snapshot(libspectrum_snap *snap) {
const char *v1;
unsigned short v2;
unsigned short v3;
int v4;
unsigned char v5;
int v6;
unsigned char v7;
unsigned short v8;
unsigned short v9;
unsigned short v10;
unsigned short v11;
unsigned short v12;
unsigned short v13;
unsigned short v14;
u... | static void dump_snapshot(libspectrum_snap *snap) {
size_t i, custom_rom_pages, num_joysticks;
const snap_periph_t *p;
libspectrum_machine machine;
int capabilities, custom_rom;
printf("filename: %s\n", snap_file);
machine = libspectrum_snap_machine(snap);
printf("machine: %s\n", libspectrum_machine_name... | dump_snapshot | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_specdrum(libspectrum_snap *snap) {
char v1;
if ((unsigned int)libspectrum_snap_specdrum_active(snap)) {
puts("\nSPECDRUM");
v1 = libspectrum_snap_specdrum_dac(snap);
printf("SpecDrum dac: %d\n", v1);
}
} | static void dump_specdrum(libspectrum_snap *snap) {
if (!libspectrum_snap_specdrum_active(snap))
return;
printf("\nSPECDRUM\n");
printf("SpecDrum dac: %d\n", libspectrum_snap_specdrum_dac(snap));
} | dump_specdrum | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_spectranet(libspectrum_snap *snap) {
int v1;
int v2;
unsigned short v3;
int v4;
int v5;
int v6;
int v7;
int v8;
int v9;
int v10;
int v11;
const libspectrum_byte *v12;
const libspectrum_byte *v13;
int i;
libspectrum_byte *w5100_regs;
if ((unsigned int)libspectrum_snap_spectrane... | static void dump_spectranet(libspectrum_snap *snap) {
libspectrum_byte *w5100_regs;
int i;
if (!libspectrum_snap_spectranet_active(snap))
return;
printf("\nSPECTRANET\n");
printf("Spectranet paged: %d\n", libspectrum_snap_spectranet_paged(snap));
printf("Spectranet paged via io: %d\n",
libspe... | dump_spectranet | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_ulaplus(libspectrum_snap *snap) {
int v1;
unsigned char v2;
unsigned char v3;
unsigned int i;
libspectrum_byte *buffer;
if ((unsigned int)libspectrum_snap_ulaplus_active(snap)) {
puts("\nULAplus");
v1 = libspectrum_snap_ulaplus_palette_enabled(snap);
printf("ULAplus enabled: %d\n", v1... | static void dump_ulaplus(libspectrum_snap *snap) {
libspectrum_byte *buffer;
unsigned int i;
if (!libspectrum_snap_ulaplus_active(snap))
return;
printf("\nULAplus\n");
printf("ULAplus enabled: %d\n",
libspectrum_snap_ulaplus_palette_enabled(snap));
printf("ULAplus current register: %d\n",
... | dump_ulaplus | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_zxatasp(libspectrum_snap *snap) {
int v1;
int v2;
unsigned char v3;
unsigned char v4;
unsigned char v5;
unsigned char v6;
long v7;
long v8;
int i;
libspectrum_byte *ram_page;
if ((unsigned int)libspectrum_snap_zxatasp_active(snap)) {
puts("\nZXATASP");
v1 = libspectrum_snap_zxat... | static void dump_zxatasp(libspectrum_snap *snap) {
libspectrum_byte *ram_page;
int i;
if (!libspectrum_snap_zxatasp_active(snap))
return;
printf("\nZXATASP\n");
printf("ZXATASP upload: %d\n", libspectrum_snap_zxatasp_upload(snap));
printf("ZXATASP write protected: %d\n",
libspectrum_snap_zxat... | dump_zxatasp | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void dump_zxcf(libspectrum_snap *snap) {
int v1;
unsigned char v2;
long v3;
int i;
libspectrum_byte *ram_page;
if ((unsigned int)libspectrum_snap_zxcf_active(snap)) {
puts("\nZXCF");
v1 = libspectrum_snap_zxcf_upload(snap);
printf("ZXCF upload: %d\n", v1);
v2 = libspectrum_snap_zxcf_memctl(... | static void dump_zxcf(libspectrum_snap *snap) {
libspectrum_byte *ram_page;
int i;
if (!libspectrum_snap_zxcf_active(snap))
return;
printf("\nZXCF\n");
printf("ZXCF upload: %d\n", libspectrum_snap_zxcf_upload(snap));
printf("ZXCF memmory control register: 0x%02X\n",
libspectrum_snap_zxcf_memc... | dump_zxcf | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
char *get_memory_filename(const char *memory_name, int page) {
size_t v3;
char *buffer;
const char *buffer2;
char *last_dot;
size_t filename_len;
char *filename;
buffer = strdup(snap_file);
if (buffer) {
buffer2 = compat_basename(buffer);
last_dot = strrchr(buffer2, 46);
if (last_dot)
... | static char *get_memory_filename(const char *memory_name, int page) {
char *buffer, *buffer2, *last_dot, *filename;
size_t filename_len;
buffer = strdup(snap_file);
if (!buffer) {
fprintf(stderr, "out of memory at %s:%d", __FILE__, __LINE__);
return NULL;
}
buffer2 = compat_basename(buffer);
las... | get_memory_filename | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
const char **argva;
libspectrum_id_t type;
libspectrum_class_t v6;
int error;
int c;
unsigned char *buffer;
size_t length;
libspectrum_snap *snap;
option long_options[3];
unsigned long v13;
v13 = __readfsqword(0x28u);
error = 0;
long_... | int main(int argc, char **argv) {
libspectrum_snap *snap;
libspectrum_id_t type;
libspectrum_class_t class;
unsigned char *buffer;
size_t length;
int error = 0;
int c;
struct option long_options[] = {
{"help", 0, NULL, 'h'}, {"version", 0, NULL, 'V'}, {0, 0, 0, 0}};
progname = argv[0];
whi... | main | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void print_memory_block(const char *name, const libspectrum_byte *data,
size_t size) {
const char *sha1;
char *filename;
sha1 = calculate_sha1sum(data, size);
if (sha1) {
printf("%s size: 0x%04lX, sha1: %s\n", name, size, sha1);
libspectrum_free(sha1);
} else {
printf("%s ... | static void print_memory_block(const char *name, const libspectrum_byte *data,
size_t size) {
char *sha1, *filename;
sha1 = calculate_sha1sum(data, size);
if (sha1) {
printf("%s size: 0x%04lX, sha1: %s\n", name, (unsigned long)size, sha1);
libspectrum_free(sha1);
} else {... | print_memory_block | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void print_memory_page(const char *name, int page, const libspectrum_byte *data,
size_t size) {
const char *sha1;
char *filename;
sha1 = calculate_sha1sum(data, size);
if (sha1) {
printf("%s_%d size: 0x%04lX, sha1: %s\n", name, page, size, sha1);
libspectrum_free(sha1);
} else ... | static void print_memory_page(const char *name, int page,
const libspectrum_byte *data, size_t size) {
char *sha1, *filename;
sha1 = calculate_sha1sum(data, size);
if (sha1) {
printf("%s_%d size: 0x%04lX, sha1: %s\n", name, page, (unsigned long)size,
sha1);
libspe... | print_memory_page | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void show_help() {
printf("Usage: %s [OPTION] <infile>\n"
"List contents of Sinclair ZX Spectrum snapshot files.\n"
"\n"
"Options:\n"
" -m Dump ROM/RAM memory pages to files.\n"
" -h, --help Display this help and exit.\n"
" -V, --version Output... | static void show_help(void) {
printf("Usage: %s [OPTION] <infile>\n"
"List contents of Sinclair ZX Spectrum snapshot files.\n"
"\n"
"Options:\n"
" -m Dump ROM/RAM memory pages to files.\n"
" -h, --help Display this help and exit.\n"
" -V, --vers... | show_help | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
void show_version() {
puts("snapdump (fuse-utils) 1.4.3\n"
"Copyright (c) 2017 Sergio Baldovi\n"
"License GPLv2+: GNU GPL version 2 or later "
"<http://gnu.org/licenses/gpl.html>\n"
"This is free software: you are free to change and redistribute it.\n"
"There is NO WARRANTY, to the ... | static void show_version(void) {
printf(PROGRAM_NAME
" (" PACKAGE ") " PACKAGE_VERSION "\n"
"Copyright (c) 2017 Sergio Baldovi\n"
"License GPLv2+: GNU GPL version 2 or later "
"<http://gnu.org/licenses/gpl.html>\n"
"This is free software: you are free to change and redistr... | show_version | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snapdump | ida | O0 |
int add_extra_block(libspectrum_tape *tape, libspectrum_snap *snap,
const page_t *page_order, size_t num_pages,
libspectrum_byte *loader) {
int empty;
int extra_block_needed;
int error;
size_t i;
size_t j;
libspectrum_byte *page;
extra_block_needed = 0;
for (i = ... | static int add_extra_block(libspectrum_tape *tape, libspectrum_snap *snap,
const page_t *page_order, size_t num_pages,
libspectrum_byte *loader) {
libspectrum_byte *page;
int empty, extra_block_needed, error;
size_t i, j;
extra_block_needed = 0;
for (i =... | add_extra_block | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int add_loader_block(libspectrum_tape *tape, libspectrum_byte **loader,
libspectrum_snap *snap, const settings_t *settings) {
int error2;
libspectrum_tape_block *block;
libspectrum_byte *basic;
*loader = (libspectrum_byte *)malloc(0x3E8u);
if (*loader) {
block = (libspectrum_tape_blo... | static int add_loader_block(libspectrum_tape *tape, libspectrum_byte **loader,
libspectrum_snap *snap,
const settings_t *settings) {
libspectrum_tape_block *block;
libspectrum_byte *basic;
size_t length;
int error2;
length = basic_length + loader_length... | add_loader_block | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int add_page(libspectrum_tape *tape, libspectrum_snap *snap, int page,
libspectrum_word address, libspectrum_byte *loader,
size_t *loader_table_entry, const settings_t *settings) {
libspectrum_byte *v8;
libspectrum_word addressb;
libspectrum_byte table_byte;
int empty;
libspectrum_er... | static int add_page(libspectrum_tape *tape, libspectrum_snap *snap, int page,
libspectrum_word address, libspectrum_byte *loader,
size_t *loader_table_entry, const settings_t *settings) {
libspectrum_tape_block *block;
libspectrum_error error;
size_t page_length, compressed... | add_page | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int add_rom_block(libspectrum_tape *tape, const libspectrum_byte flag,
const libspectrum_byte *data, const size_t length) {
libspectrum_byte *buffer;
libspectrum_tape_block *block;
buffer = (libspectrum_byte *)malloc(length + 2);
if (buffer) {
block = (libspectrum_tape_block *)libspectrum... | static int add_rom_block(libspectrum_tape *tape, const libspectrum_byte flag,
const libspectrum_byte *data, const size_t length) {
libspectrum_byte *buffer;
libspectrum_tape_block *block;
buffer = malloc((length + 2) * sizeof(libspectrum_byte));
if (!buffer) {
print_error("out of me... | add_rom_block | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
libspectrum_byte calc_checksum(libspectrum_byte *data, size_t length) {
libspectrum_byte checksum;
size_t i;
i = 0;
checksum = 0;
while (i < length) {
checksum ^= *data;
++i;
++data;
}
return checksum;
} | static libspectrum_byte calc_checksum(libspectrum_byte *data, size_t length) {
size_t i;
libspectrum_byte checksum;
for (i = 0, checksum = 0; i < length; i++, data++)
checksum ^= *data;
return checksum;
} | calc_checksum | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
void centre_name(char *name) {
int i;
int ia;
int ib;
int num;
for (i = 31; i >= 0 && name[i] == 32; --i)
;
num = 31 - i;
if (31 - i > 1) {
for (ia = 31; ia >= num / 2; --ia)
name[ia] = name[num / -2 + ia];
for (ib = 0; ib < num / 2; ++ib)
name[ib] = 32;
}
} | static void centre_name(char *name) {
int i, num;
for (i = 31; i >= 0 && name[i] == ' '; i--)
;
num = 31 - i;
if (num > 1) {
for (i = 31; i >= num / 2; i--)
name[i] = name[i - (num / 2)];
for (i = 0; i < num / 2; i++)
name[i] = ' ';
}
} | centre_name | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
void change_copyright(char *buffer) {
while (*buffer) {
if (*buffer == 126)
*buffer = 127;
++buffer;
}
} | static void change_copyright(char *buffer) {
for (; *buffer; buffer++)
if (*buffer == '~')
*buffer = 0x7f;
} | change_copyright | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int convert_snap(libspectrum_snap *snap, const settings_t *settings) {
int error;
libspectrum_tape *tape;
tape = (libspectrum_tape *)libspectrum_tape_alloc();
print_verbose("\nCreating TZX file:\n");
error = create_main_header(tape, settings->loader_name);
if (error || (error = create_main_data(tape, snap,... | static int convert_snap(libspectrum_snap *snap, const settings_t *settings) {
libspectrum_tape *tape = libspectrum_tape_alloc();
int error;
print_verbose("\nCreating TZX file:\n");
error = create_main_header(tape, settings->loader_name);
if (error) {
libspectrum_tape_free(tape);
return error;
}
... | convert_snap | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int create_loader(libspectrum_byte *buffer, libspectrum_snap *snap,
const settings_t *settings) {
libspectrum_word v3;
libspectrum_word v4;
libspectrum_word v5;
libspectrum_word v6;
libspectrum_byte v7;
libspectrum_word v8;
unsigned char v9;
libspectrum_byte v10;
libspectrum_word v11... | static int create_loader(libspectrum_byte *buffer, libspectrum_snap *snap,
const settings_t *settings) {
int border_colour;
size_t i, ppay;
libspectrum_byte machine, attributes;
border_colour = settings->load_colour;
if (border_colour == -1)
border_colour = libspectrum_snap_out_... | create_loader | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int create_main_data(libspectrum_tape *tape, libspectrum_snap *snap,
const settings_t *settings) {
libspectrum_byte *v4;
int i;
int num_pages;
int error;
int errora;
int errorb;
libspectrum_byte *loader;
size_t loader_table_entry;
const page_t *page_order;
unsigned long v14;
... | static int create_main_data(libspectrum_tape *tape, libspectrum_snap *snap,
const settings_t *settings) {
int i, num_pages, error;
const page_t *page_order;
libspectrum_byte *loader;
size_t loader_table_entry;
error = add_loader_block(tape, &loader, snap, settings);
if (error)
... | create_main_data | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int create_main_header(libspectrum_tape *tape, const char *loader_name) {
char v2;
char *v3;
int error;
libspectrum_byte *ptr;
size_t i;
size_t length;
libspectrum_byte header[24];
unsigned long v10;
v10 = __readfsqword(0x28u);
header[0] = 0;
header[1] = 17;
ptr = &header[3];
header[2] = 5;
... | static int create_main_header(libspectrum_tape *tape, const char *loader_name) {
libspectrum_byte header[17], *ptr;
size_t i, length;
int error;
ptr = header;
*ptr++ = '\0';
*ptr++ = 0x11;
*ptr++ = 0x05;
length = strlen(loader_name);
for (i = 0; i < 8; i++)
*ptr++ = (i <= length ? loader_name... | create_main_header | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int create_turbo_header(libspectrum_tape_block *block, int speed) {
libspectrum_dword pilot_length;
const turbo_variables_t *ptr;
ptr = &turbo_variables[speed];
pilot_length = ptr->pilot_length;
libspectrum_tape_block_set_pilot_length(block, pilot_length);
libspectrum_tape_block_set_pilot_pulses(block, 0x3... | static int create_turbo_header(libspectrum_tape_block *block, int speed) {
const turbo_variables_t *ptr;
libspectrum_dword pilot_length;
ptr = &turbo_variables[speed];
pilot_length = ptr->pilot_length;
libspectrum_tape_block_set_pilot_length(block, pilot_length);
libspectrum_tape_block_set_pilot_pulses(b... | create_turbo_header | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
void crunch_z80(libspectrum_byte *BufferIn, libspectrum_word BlLength,
libspectrum_byte *BufferOut, size_t *CrunchedLength) {
int v4;
int i;
int v6;
unsigned short v7;
unsigned short v8;
libspectrum_byte *v9;
unsigned short v10;
unsigned short v11;
libspectrum_word j;
libspectrum_byt... | static void crunch_z80(libspectrum_byte *BufferIn, libspectrum_word BlLength,
libspectrum_byte *BufferOut, size_t *CrunchedLength)
{
register libspectrum_word IndexIn;
register libspectrum_word IndexOut = 0;
libspectrum_word LengthOut;
register libspectrum_word RunTimeLength;
int Crunc... | crunch_z80 | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int get_loading_screen(libspectrum_byte *screen, const char *filename) {
int *v2;
char *v3;
int *v5;
char *v6;
int *v7;
char *v8;
FILE *f;
size_t count;
f = fopen(filename, modes);
if (f) {
count = fread(screen, 1u, 0x1B00u, f);
if (count == 6912) {
if (fclose(f)) {
v7 = __err... | static int get_loading_screen(libspectrum_byte *screen, const char *filename) {
FILE *f;
size_t count;
f = fopen(filename, "rb");
if (!f) {
print_error("error opening loading screen '%s': %s", filename,
strerror(errno));
return 1;
}
count = fread(screen, 1, 6912, f);
if (count !=... | get_loading_screen | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int initialise_settings(settings_t *settings) {
settings->input_filename = 0;
settings->external_filename = 0;
settings->loader_name[0] = 0;
settings->game_name[0] = 0;
strcpy(settings->info1, " ");
strcpy(settings->info2, " ");
settings->speed... | static int initialise_settings(settings_t *settings) {
settings->input_filename = NULL;
settings->external_filename = NULL;
settings->loader_name[0] = '\0';
settings->game_name[0] = '\0';
strncpy(settings->info1, " ", 33);
strncpy(settings->info2, " ... | initialise_settings | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int load_snap(libspectrum_snap **snap, const char *filename) {
int error;
unsigned char *buffer;
size_t length[2];
length[1] = __readfsqword(0x28u);
*snap = (libspectrum_snap *)libspectrum_snap_alloc();
if (read_file(filename, &buffer, length)) {
libspectrum_snap_free(*snap);
return 1;
} else {
... | static int load_snap(libspectrum_snap **snap, const char *filename) {
int error;
unsigned char *buffer;
size_t length;
*snap = libspectrum_snap_alloc();
if (read_file(filename, &buffer, &length)) {
libspectrum_snap_free(*snap);
return 1;
}
error = libspectrum_snap_read(*snap, buffer, length, LI... | load_snap | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int error;
int errora;
int errorb;
int errorc;
libspectrum_snap *snap;
settings_t settings;
unsigned long v10;
v10 = __readfsqword(0x28u);
progname = (char *)*argv;
error = init_libspectrum();
if (error)
return error;
errora = parse... | int main(int argc, char **argv) {
settings_t settings;
libspectrum_snap *snap;
int error;
progname = argv[0];
error = init_libspectrum();
if (error)
return error;
error = parse_args(&settings, argc, argv);
if (error) {
fprintf(stderr, "Try `%s --help' for more information.\n", progname);
r... | main | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int parse_args(settings_t *settings, int argc, char **argv) {
int got_game_name;
int got_loader_name;
int got_out_filename;
int error;
int errora;
int errorb;
int errorc;
int errord;
int c;
char *buffer;
const char *buffer2;
char *last_dot;
option long_options[3];
unsigned long v18;
v18 =... | static int parse_args(settings_t *settings, int argc, char **argv) {
int c, got_game_name, got_loader_name, got_out_filename, error;
char *buffer, *buffer2, *last_dot;
struct option long_options[] = {
{"help", 0, NULL, 'h'}, {"version", 0, NULL, 'V'}, {0, 0, 0, 0}};
error = initialise_settings(settings)... | parse_args | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
void print_error(const char *format, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
va_list ap;
unsigned long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
va_start(ap, format);
v3 = va_arg(ap, _QWORD);
v1 = va_arg(ap, _QWORD);
v2 = va_arg(ap, _QWORD);
v4 = va_arg(ap, _QWOR... | static void print_error(const char *format, ...) {
va_list ap;
fprintf(stderr, "%s: ", progname);
va_start(ap, format);
vfprintf(stderr, format, ap);
va_end(ap);
fprintf(stderr, "\n");
} | print_error | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
void print_help() {
printf("Usage: %s [OPTION...] <snapshot>\n"
"Converts a ZX Spectrum snapshot into a .tzx tape image.\n"
"\n"
"Options:\n"
"\n"
" -1 s Show string 's' when loading (max 32 characters)\n"
" -2 s Another line when loading (max 32 characters)\n... | static void print_help(void) {
printf("Usage: %s [OPTION...] <snapshot>\n"
"Converts a ZX Spectrum snapshot into a .tzx tape image.\n"
"\n"
"Options:\n"
"\n"
" -1 s Show string 's' when loading (max 32 characters)\n"
" -2 s Another line when loading (max 32 ch... | print_help | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
void print_verbose(const char *format, ...) {
long v1;
long v2;
long v3;
long v4;
long v5;
va_list ap;
unsigned long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
va_start(ap, format);
v3 = va_arg(ap, _QWORD);
v1 = va_arg(ap, _QWORD);
v2 = va_arg(ap, _QWORD);
v4 = va_arg(ap, _QW... | static void print_verbose(const char *format, ...) {
va_list ap;
if (!verbose)
return;
va_start(ap, format);
vprintf(format, ap);
va_end(ap);
} | print_verbose | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
void print_version() {
puts("snap2tzx (fuse-utils) 1.4.3\n"
"Copyright (c) 1997-2001 ThunderWare Research Center, written by\n"
" Martijn van der Heide,\n"
"Copyright (c) 2003 Tomaz Kac,\n"
"Copyright (c) 2003 Philip Kendall\n"
"License GPLv2+: GNU GPL version... | static void print_version(void) {
printf(PROGRAM_NAME
" (" PACKAGE ") " PACKAGE_VERSION "\n"
"Copyright (c) 1997-2001 ThunderWare Research Center, written by\n"
" Martijn van der Heide,\n"
"Copyright (c) 2003 Tomaz Kac,\n"
"Copyright (c) 2003 Philip ... | print_version | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
void reverse_block(libspectrum_byte *BufferOut, libspectrum_byte *BufferIn) {
unsigned short i;
libspectrum_byte *v3;
libspectrum_byte *v4;
libspectrum_byte *BOut;
BOut = BufferOut + 0x3FFF;
for (i = 0; i <= 0x3FFFu; ++i) {
v3 = BufferIn++;
v4 = BOut--;
*v4 = *v3;
}
} | static void reverse_block(libspectrum_byte *BufferOut,
libspectrum_byte *BufferIn) {
register libspectrum_word Cnt;
libspectrum_byte *BIn;
libspectrum_byte *BOut;
for (BIn = BufferIn, BOut = BufferOut + 16383, Cnt = 0; Cnt < 16384; Cnt++)
*(BOut--) = *(BIn++);
} | reverse_block | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
void set_loader_speed(libspectrum_byte *buffer, int speed,
libspectrum_byte border_colour) {
libspectrum_byte v3;
buffer[94] = turbo_variables[speed].compare;
buffer[118] = turbo_variables[speed].delay;
if (border_colour)
v3 = border_colour | 0x40;
else
v3 = 65;
buffer[134] = ... | static void set_loader_speed(libspectrum_byte *buffer, int speed,
libspectrum_byte border_colour) {
libspectrum_byte xor_colour;
const turbo_variables_t *ptr;
ptr = &turbo_variables[speed];
buffer[94] = ptr->compare;
buffer[118] = ptr->delay;
xor_colour = (border_colour == 0 ... | set_loader_speed | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int setup_string(char *dest, size_t length, const char *src) {
snprintf(dest, length + 1, "%*s", -(int)length, src);
change_copyright(dest);
centre_name(dest);
return 0;
} | static int setup_string(char *dest, size_t length, const char *src) {
snprintf(dest, length + 1, "%*s", (int)-length, src);
change_copyright(dest);
centre_name(dest);
return 0;
} | setup_string | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int snap_mode_128(libspectrum_snap *snap) {
libspectrum_machine machine;
machine = (unsigned int)libspectrum_snap_machine(snap);
libspectrum_machine_capabilities((unsigned int)machine);
return 0;
} | static int snap_mode_128(libspectrum_snap *snap) {
libspectrum_machine machine;
int capabilities;
machine = libspectrum_snap_machine(snap);
capabilities = libspectrum_machine_capabilities(machine);
return (capabilities & LIBSPECTRUM_MACHINE_CAPABILITY_128_MEMORY);
} | snap_mode_128 | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int test_decz80(libspectrum_byte *source, int final_len, int source_len) {
libspectrum_byte b1;
int dst_pnt;
int src_pnt;
int overwrite;
int off;
dst_pnt = 0;
src_pnt = final_len - source_len;
overwrite = 0;
off = final_len - source_len;
while (dst_pnt < final_len && !overwrite) {
b1 = source[s... | static int test_decz80(libspectrum_byte *source, int final_len,
int source_len) {
int dst_pnt = 0;
int src_pnt = final_len - source_len;
int overwrite = 0;
libspectrum_byte b1;
libspectrum_byte b2;
libspectrum_byte times;
int off = src_pnt;
while (dst_pnt < final_len && !over... | test_decz80 | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int test_rev_decz80(libspectrum_byte *source, int final_len, int source_len) {
libspectrum_byte b1;
int dst_pnt;
int src_pnt;
int overwrite;
dst_pnt = final_len - 1;
src_pnt = source_len - 1;
overwrite = 0;
while (dst_pnt >= 0 && !overwrite) {
b1 = source[src_pnt--];
if (b1 == 0xED && source[sr... | static int test_rev_decz80(libspectrum_byte *source, int final_len,
int source_len) {
int dst_pnt = final_len - 1;
int src_pnt = source_len - 1;
int overwrite = 0;
libspectrum_byte b1;
libspectrum_byte b2;
libspectrum_byte times;
while (dst_pnt >= 0 && !overwrite) {
b1 =... | test_rev_decz80 | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int write_tape(libspectrum_tape *tape, const char *filename) {
int error;
libspectrum_byte *buffer;
size_t length[2];
length[1] = __readfsqword(0x28u);
length[0] = 0;
error = libspectrum_tape_write(&buffer, length, tape, 5);
if (error)
return error;
if (write_file(filename, buffer, length[0])) {
... | static int write_tape(libspectrum_tape *tape, const char *filename) {
libspectrum_byte *buffer;
size_t length;
int error;
length = 0;
error =
libspectrum_tape_write(&buffer, &length, tape, LIBSPECTRUM_ID_TAPE_TZX);
if (error)
return error;
error = write_file(filename, buffer, length);
if (e... | write_tape | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
void write_word(libspectrum_byte *dest, libspectrum_word src) {
*(_WORD *)dest = src;
} | static void write_word(libspectrum_byte *dest, libspectrum_word src) {
*dest = src & 0xff;
*(dest + 1) = src >> 8;
} | write_word | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/snap2tzx | ida | O0 |
int append_inlay_file(char *inlay_file, libspectrum_tape *tape) {
libspectrum_byte *jpg_data;
size_t jpg_length;
libspectrum_tape_block *block;
char *description;
size_t custom_block_length;
libspectrum_byte *custom_block_data;
unsigned long v9;
v9 = __readfsqword(0x28u);
block = (libspectrum_tape_bl... | static int append_inlay_file(char *inlay_file, libspectrum_tape *tape) {
libspectrum_tape_block *block;
char *description;
libspectrum_byte *jpg_data;
size_t jpg_length;
libspectrum_byte *custom_block_data;
size_t custom_block_length;
block = libspectrum_tape_block_alloc(LIBSPECTRUM_TAPE_BLOCK_CUSTOM);
... | append_inlay_file | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tapeconv | ida | O0 |
int append_scr_file(char *scr_file, libspectrum_tape *tape) {
libspectrum_byte *scr_data;
size_t scr_length;
libspectrum_tape_block *block;
char *description;
size_t custom_block_length;
libspectrum_byte *custom_block_data;
unsigned long v9;
v9 = __readfsqword(0x28u);
block = (libspectrum_tape_block ... | static int append_scr_file(char *scr_file, libspectrum_tape *tape) {
libspectrum_tape_block *block;
char *description;
libspectrum_byte *scr_data;
size_t scr_length;
libspectrum_byte *custom_block_data;
size_t custom_block_length;
block = libspectrum_tape_block_alloc(LIBSPECTRUM_TAPE_BLOCK_CUSTOM);
de... | append_scr_file | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tapeconv | ida | O0 |
int beautify_tzx_file(libspectrum_tape *tape) {
libspectrum_error error;
error = remove_block_type(
tape, libspectrum_tape_type_LIBSPECTRUM_TAPE_BLOCK_CONCAT);
if (error)
return error;
else
return 0;
} | static int beautify_tzx_file(libspectrum_tape *tape) {
libspectrum_error error;
error = remove_block_type(tape, LIBSPECTRUM_TAPE_BLOCK_CONCAT);
if (error) {
return error;
}
return 0;
} | beautify_tzx_file | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tapeconv | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.