Logo Search packages:      
Sourcecode: yasm version File versions  Download package

bytecode.h File Reference


Detailed Description

YASM bytecode interface.

Id
bytecode.h 1152 2004-10-02 06:18:30Z peter

Copyright (C) 2001 Peter Johnson

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND OTHER CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file bytecode.h.

Go to the source code of this file.

Typedefs

typedef struct yasm_dataval yasm_dataval
typedef struct yasm_datavalhead yasm_datavalhead
typedef struct yasm_effaddr yasm_effaddr
typedef struct yasm_immval yasm_immval

Enumerations

enum  yasm_bc_resolve_flags { YASM_BC_RESOLVE_NONE = 0, YASM_BC_RESOLVE_ERROR = 1<<0, YASM_BC_RESOLVE_MIN_LEN = 1<<1, YASM_BC_RESOLVE_UNKNOWN_LEN = 1<<2 }

Functions

yasm_bytecodeyasm_bc_create_align (unsigned long boundary, unsigned long line)
yasm_bytecodeyasm_bc_create_data (yasm_datavalhead *datahead, unsigned int size, unsigned long line)
yasm_bytecodeyasm_bc_create_incbin (char *filename, yasm_expr *start, yasm_expr *maxlen, unsigned long line)
yasm_bytecodeyasm_bc_create_reserve (yasm_expr *numitems, unsigned int itemsize, unsigned long line)
void yasm_bc_destroy (yasm_bytecode *bc)
yasm_sectionyasm_bc_get_section (yasm_bytecode *bc)
void yasm_bc_print (const yasm_bytecode *bc, FILE *f, int indent_level)
yasm_bc_resolve_flags yasm_bc_resolve (yasm_bytecode *bc, int save, yasm_calc_bc_dist_func calc_bc_dist)
void yasm_bc_set_multiple (yasm_bytecode *bc, yasm_expr *e)
unsigned char * yasm_bc_tobytes (yasm_bytecode *bc, unsigned char *buf, unsigned long *bufsize, unsigned long *multiple, int *gap, void *d, yasm_output_expr_func output_expr, yasm_output_reloc_func output_reloc)
yasm_intnumyasm_common_calc_bc_dist (yasm_bytecode *precbc1, yasm_bytecode *precbc2)
yasm_datavalyasm_dv_create_expr (yasm_expr *expn)
yasm_datavalyasm_dv_create_float (yasm_floatnum *flt)
yasm_datavalyasm_dv_create_string (char *str_val)
yasm_datavalyasm_dvs_append (yasm_datavalhead *headp, yasm_dataval *dv)
void yasm_dvs_destroy (yasm_datavalhead *headp)
void yasm_dvs_initialize (yasm_datavalhead *headp)
void yasm_dvs_print (const yasm_datavalhead *headp, FILE *f, int indent_level)
void yasm_ea_destroy (yasm_effaddr *ea)
const yasm_expryasm_ea_get_disp (const yasm_effaddr *ea)
void yasm_ea_print (const yasm_effaddr *ea, FILE *f, int indent_level)
void yasm_ea_set_len (yasm_effaddr *ea, unsigned int len)
void yasm_ea_set_nosplit (yasm_effaddr *ea, unsigned int nosplit)
yasm_immvalyasm_imm_create_expr (yasm_expr *e)
yasm_immvalyasm_imm_create_int (unsigned long int_val, unsigned long line)


Generated by  Doxygen 1.6.0   Back to index