Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htle.cc File Reference

#include "errno.h"
#include <stdlib.h>
#include "htendian.h"
#include "htle.h"
#include "htlehead.h"
#include "htleimg.h"
#include "htleobj.h"
#include "htleent.h"
#include "htlepage.h"
#include "htlevxd.h"
#include "htiobox.h"
#include "htnewexe.h"
#include "lestruct.h"
#include "log.h"
#include "tools.h"

Go to the source code of this file.

Defines

#define LE_SEG_ADDR(i)

Functions

FILEOFS LE_get_seg_ofs (ht_le_shared_data *LE_shared, UINT i)
LEAddress LE_get_seg_addr (ht_le_shared_data *LE_shared, UINT i)
UINT LE_get_seg_psize (ht_le_shared_data *LE_shared, UINT i)
UINT LE_get_seg_vsize (ht_le_shared_data *LE_shared, UINT i)
bool LE_addr_to_segment (ht_le_shared_data *LE_shared, LEAddress Addr, int *segment)
bool LE_addr_is_physical (ht_le_shared_data *LE_shared, LEAddress Addr)
bool LE_addr_to_ofs (ht_le_shared_data *LE_shared, LEAddress Addr, FILEOFS *ofs)
bool LE_ofs_to_addr (ht_le_shared_data *LE_shared, FILEOFS ofs, LEAddress *Addr)
LEAddress LE_MAKE_ADDR (ht_le_shared_data *LE_shared, uint16 seg, uint32 ofs)
uint16 LE_ADDR_SEG (ht_le_shared_data *LE_shared, LEAddress a)
uint32 LE_ADDR_OFS (ht_le_shared_data *LE_shared, LEAddress a)

Variables

format_viewer_if htle_if


Define Documentation

#define LE_SEG_ADDR  ) 
 

Value:

(LE_shared->objmap.header[(i)].page_map_index-1) *\
                        LE_shared->hdr.pagesize + LE_BASE_ADDR

Definition at line 38 of file htle.cc.

Referenced by LE_ADDR_OFS(), LE_ADDR_SEG(), LE_get_seg_addr(), LE_get_seg_ofs(), and LE_MAKE_ADDR().


Function Documentation

bool LE_addr_is_physical ht_le_shared_data LE_shared,
LEAddress  Addr
 

Definition at line 669 of file htle.cc.

References ht_le_objmap::count, LE_get_seg_addr(), LE_get_seg_psize(), LEAddress, ht_le_shared_data::objmap, and UINT.

uint32 LE_ADDR_OFS ht_le_shared_data LE_shared,
LEAddress  a
 

Definition at line 720 of file htle.cc.

References ht_le_objmap::count, LE_SEG_ADDR, LEAddress, ht_le_shared_data::objmap, UINT, uint32, and ht_le_objmap::vsize.

Referenced by LEAnalyser::beginAnalysis().

uint16 LE_ADDR_SEG ht_le_shared_data LE_shared,
LEAddress  a
 

Definition at line 709 of file htle.cc.

References ht_le_objmap::count, LE_SEG_ADDR, LEAddress, ht_le_shared_data::objmap, UINT, uint16, and ht_le_objmap::vsize.

Referenced by LEAnalyser::beginAnalysis().

bool LE_addr_to_ofs ht_le_shared_data LE_shared,
LEAddress  Addr,
FILEOFS ofs
 

Definition at line 679 of file htle.cc.

References ht_le_objmap::count, FILEOFS, LE_BASE_ADDR, LE_get_seg_addr(), LE_get_seg_psize(), LEAddress, ht_le_shared_data::objmap, and UINT.

Referenced by LEAnalyser::addressToFileofs(), LEAnalyser::addressToRealFileofs(), and LEAnalyser::validAddress().

bool LE_addr_to_segment ht_le_shared_data LE_shared,
LEAddress  Addr,
int *  segment
 

Definition at line 656 of file htle.cc.

References ht_le_objmap::count, LE_get_seg_addr(), LE_get_seg_psize(), LE_get_seg_vsize(), LEAddress, MAX, ht_le_shared_data::objmap, and UINT.

Referenced by LEAnalyser::beginAnalysis(), LEAnalyser::getSegmentNameByAddress(), and LEAnalyser::validAddress().

LEAddress LE_get_seg_addr ht_le_shared_data LE_shared,
UINT  i
 

Definition at line 638 of file htle.cc.

References assert, LE_SEG_ADDR, LEAddress, and UINT.

Referenced by LEAnalyser::beginAnalysis(), LE_addr_is_physical(), LE_addr_to_ofs(), and LE_addr_to_segment().

FILEOFS LE_get_seg_ofs ht_le_shared_data LE_shared,
UINT  i
 

Definition at line 632 of file htle.cc.

References assert, FILEOFS, LE_BASE_ADDR, LE_SEG_ADDR, and UINT.

Referenced by LE_ofs_to_addr().

UINT LE_get_seg_psize ht_le_shared_data LE_shared,
UINT  i
 

Definition at line 644 of file htle.cc.

References assert, ht_le_shared_data::objmap, ht_le_objmap::psize, and UINT.

Referenced by LE_addr_is_physical(), LE_addr_to_ofs(), LE_addr_to_segment(), and LE_ofs_to_addr().

UINT LE_get_seg_vsize ht_le_shared_data LE_shared,
UINT  i
 

Definition at line 650 of file htle.cc.

References assert, ht_le_shared_data::objmap, UINT, and ht_le_objmap::vsize.

Referenced by LEAnalyser::beginAnalysis(), and LE_addr_to_segment().

LEAddress LE_MAKE_ADDR ht_le_shared_data LE_shared,
uint16  seg,
uint32  ofs
 

Definition at line 704 of file htle.cc.

References LE_SEG_ADDR, and LEAddress.

Referenced by LEAnalyser::beginAnalysis(), and ht_le::do_fixups().

bool LE_ofs_to_addr ht_le_shared_data LE_shared,
FILEOFS  ofs,
LEAddress *  Addr
 

Definition at line 692 of file htle.cc.

References ht_le_objmap::count, FILEOFS, LE_BASE_ADDR, LE_get_seg_ofs(), LE_get_seg_psize(), ht_le_shared_data::objmap, and UINT.

Referenced by LEAnalyser::fileofsToAddress(), and LEAnalyser::realFileofsToAddress().


Variable Documentation

format_viewer_if htle_if
 

Initial value:

 {
        htle_init,
        0
}

Definition at line 64 of file htle.cc.


Generated on Fri May 7 21:15:49 2004 by doxygen 1.3.5