Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

include/interpret.h File Reference


Detailed Description

Bytecode interpretter.

See also:
src/interpret.c

Definition in file interpret.h.

#include "substdio.h"

Go to the source code of this file.

Data Structures

struct  return_info

Defines

#define ACTIVE_STACK_DEPTH   32
#define REGISTER_STACK_DEPTH   128
#define CALL_STACK_DEPTH   32

Typedefs

typedef return_info return_info_t

Functions

void load_and_run (char *filename)
long run_program (const unsigned char *program_data, int num_params, va_list params)
return_info_t interpret_call (int which_func, long *params)


Define Documentation

#define ACTIVE_STACK_DEPTH   32
 

Definition at line 12 of file interpret.h.

Referenced by run_program().

#define CALL_STACK_DEPTH   32
 

Definition at line 14 of file interpret.h.

Referenced by run_program().

#define REGISTER_STACK_DEPTH   128
 

Definition at line 13 of file interpret.h.

Referenced by run_program().


Typedef Documentation

typedef struct return_info return_info_t
 

Referenced by int_helper_pointer(), int_helper_pointer_pointer(), int_helper_pointer_short(), int_helper_short(), int_helper_short_short(), int_helper_short_short_pointer_pointer_short(), int_helper_short_short_short(), int_helper_short_short_vararg(), int_helper_void(), interpret_call(), long_helper_void(), pointer_helper_long(), pointer_helper_pointer(), pointer_helper_pointer_vararg(), pointer_helper_short(), pointer_helper_void(), run_program(), void_helper_long(), void_helper_pointer(), void_helper_pointer_pointer(), void_helper_pointer_short_short(), void_helper_pointer_vararg(), void_helper_short(), void_helper_short_pointer(), void_helper_short_short(), void_helper_short_short_short(), and void_helper_void().


Function Documentation

return_info_t interpret_call int  which_func,
long *  params
 

Definition at line 349 of file interpret_aux.c.

References aux_functions, aux_function::helper_func, return_info_t, and return_info::returns.

Referenced by run_program().

void load_and_run char *  filename  ) 
 

long run_program const unsigned char *  program_data,
int  num_params,
va_list  params
 

Definition at line 142 of file interpret.c.

References ACTIVE_STACK_DEPTH, instruction_args::bytes, CALL_STACK_DEPTH, instruction_args::dword, instruction_args_t, interp_func_name(), interpret_call(), interpreter_call_stack, interpreter_call_stack_pos, load_register, OP_ADD, OP_ALLOCA, OP_AND, OP_ASL, OP_ASR, OP_BOOL, OP_BOOL2, OP_BRAB, OP_BRAL, OP_BRAW, OP_CALL, OP_CCALL, OP_DECR, OP_DEREFB, OP_DEREFL, OP_DEREFW, OP_DISC, OP_DISCN, OP_DIV, OP_DUP, OP_HALT, OP_INCR, OP_JMPB, OP_JMPL, OP_JMPW, OP_LDIB, OP_LDIL, OP_LDIO, OP_LDIW, OP_LDIZ, OP_LDLBL, OP_LDR, OP_LDR2, OP_LINK, OP_MOD, OP_MOV, OP_MUL, OP_MVA, OP_NEG, OP_NOP, OP_NOT, OP_OR, OP_POKEB, OP_POKEL, OP_POKEW, OP_RET, OP_STA, OP_STR, OP_SUB, OP_TEQ, OP_TGT, OP_TLT, OP_XOR, pop_stack, push_stack, REGISTER_STACK_DEPTH, return_info_t, return_info::returns, return_info::retval, save_register, start_args, instruction_args::ubytes, instruction_args::words, and write_arg.

Referenced by call_attackfunc(), call_genericfunc(), call_stepfunc(), call_throwhitfunc(), and call_usefunc().


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6