#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for ucdump.c:
Go to the source code of this file.
Classes | |
struct | _opcode_desc |
Defines | |
#define | IMMED 1 |
#define | IMMED_BYTE 2 |
#define | DATA_STRING 4 |
#define | RELATIVE_JUMP 8 |
#define | CALL 16 |
#define | VARREF 32 |
#define | FLGREF 64 |
#define | EXTCALL 128 |
Typedefs | |
typedef _opcode_desc | opcode_desc |
Functions | |
void | process_data_seg (FILE *f, unsigned short ds) |
unsigned short | print_opcode (unsigned char *ptrc, unsigned short coffset, unsigned char *pdataseg, unsigned short *pextern, unsigned short externsize, unsigned char *opcode_buf, unsigned char *intrinsic_buf, int mute, int count_all_opcodes, int count_all_intrinsic) |
void | process_code_seg (FILE *f, unsigned short ds, unsigned short s, unsigned char *opcode_buf, unsigned char *intrinsic_buf, int mute, int count_all_opcodes, int count_all_intrinsic) |
void | process_func (FILE *f, long func, int i, int *found, unsigned char *opcode_buf, unsigned char *intrinsic_buf, int scan_mode, unsigned long opcode, unsigned long intrinsic) |
int | main (int ac, char **av) |
Variables | |
static opcode_desc | opcode_table [] |
static const char * | bg_func_table [] |
const char ** | func_table = bg_func_table |
int | func_table_size = sizeof(bg_func_table) |
#define CALL 16 |
Definition at line 99 of file ucdump.c.
Referenced by main(), print_opcode(), Usecode_internal::uc_trace_disasm(), and yylex().
#define DATA_STRING 4 |
Definition at line 95 of file ucdump.c.
Referenced by main(), print_opcode(), and Usecode_internal::uc_trace_disasm().
#define EXTCALL 128 |
Definition at line 105 of file ucdump.c.
Referenced by main(), print_opcode(), and Usecode_internal::uc_trace_disasm().
#define FLGREF 64 |
Definition at line 103 of file ucdump.c.
Referenced by main(), print_opcode(), and Usecode_internal::uc_trace_disasm().
#define IMMED 1 |
Definition at line 91 of file ucdump.c.
Referenced by main(), print_opcode(), and Usecode_internal::uc_trace_disasm().
#define IMMED_BYTE 2 |
#define RELATIVE_JUMP 8 |
Definition at line 97 of file ucdump.c.
Referenced by main(), print_opcode(), and Usecode_internal::uc_trace_disasm().
#define VARREF 32 |
Definition at line 101 of file ucdump.c.
Referenced by main(), print_opcode(), and Usecode_internal::uc_trace_disasm().
typedef struct _opcode_desc opcode_desc |
int main | ( | int | ac, | |
char ** | av | |||
) |
Definition at line 1210 of file ucdump.c.
References process_func().
Here is the call graph for this function:
unsigned short print_opcode | ( | unsigned char * | ptrc, | |
unsigned short | coffset, | |||
unsigned char * | pdataseg, | |||
unsigned short * | pextern, | |||
unsigned short | externsize, | |||
unsigned char * | opcode_buf, | |||
unsigned char * | intrinsic_buf, | |||
int | mute, | |||
int | count_all_opcodes, | |||
int | count_all_intrinsic | |||
) |
Definition at line 896 of file ucdump.c.
References CALL, DATA_STRING, EXTCALL, FLGREF, func_table, func_table_size, IMMED, IMMED_BYTE, len, _opcode_desc::mnemonic, _opcode_desc::nbytes, opcode_table, RELATIVE_JUMP, _opcode_desc::type, and VARREF.
Referenced by printcodeseg(), and process_code_seg().
void process_code_seg | ( | FILE * | f, | |
unsigned short | ds, | |||
unsigned short | s, | |||
unsigned char * | opcode_buf, | |||
unsigned char * | intrinsic_buf, | |||
int | mute, | |||
int | count_all_opcodes, | |||
int | count_all_intrinsic | |||
) |
Definition at line 1077 of file ucdump.c.
References offset, print_opcode(), and size.
Referenced by process_func().
Here is the call graph for this function:
void process_data_seg | ( | FILE * | f, | |
unsigned short | ds | |||
) |
void process_func | ( | FILE * | f, | |
long | func, | |||
int | i, | |||
int * | found, | |||
unsigned char * | opcode_buf, | |||
unsigned char * | intrinsic_buf, | |||
int | scan_mode, | |||
unsigned long | opcode, | |||
unsigned long | intrinsic | |||
) |
Definition at line 1152 of file ucdump.c.
References funcnum, process_code_seg(), process_data_seg(), and s.
Referenced by main().
Here is the call graph for this function:
const char* bg_func_table[] [static] |
const char** func_table = bg_func_table |
Definition at line 846 of file ucdump.c.
Referenced by main(), print_opcode(), and Usecode_internal::uc_trace_disasm().
int func_table_size = sizeof(bg_func_table) |
opcode_desc opcode_table[] [static] |
Definition at line 119 of file ucdump.c.
Referenced by Usecode_internal::get_opcode_length(), main(), print_opcode(), and Usecode_internal::uc_trace_disasm().