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

htne.cc File Reference

#include "log.h"
#include "htendian.h"
#include "htiobox.h"
#include "htne.h"
#include "htneent.h"
#include "htnehead.h"
#include "htneimp.h"
#include "htnenms.h"
#include "htneobj.h"
#include "htneimg.h"
#include "htnewexe.h"
#include "nestruct.h"
#include "tools.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

FILEOFS NE_get_seg_ofs (ht_ne_shared_data *NE_shared, UINT i)
NEAddress NE_get_seg_addr (ht_ne_shared_data *NE_shared, UINT i)
UINT NE_get_seg_psize (ht_ne_shared_data *NE_shared, UINT i)
UINT NE_get_seg_vsize (ht_ne_shared_data *NE_shared, UINT i)
bool NE_addr_to_segment (ht_ne_shared_data *NE_shared, NEAddress Addr, int *segment)
bool NE_addr_is_physical (ht_ne_shared_data *NE_shared, NEAddress Addr)
bool NE_addr_to_ofs (ht_ne_shared_data *NE_shared, NEAddress Addr, FILEOFS *ofs)
bool NE_ofs_to_addr (ht_ne_shared_data *NE_shared, FILEOFS ofs, NEAddress *Addr)

Variables

format_viewer_if htne_if


Function Documentation

bool NE_addr_is_physical ht_ne_shared_data NE_shared,
NEAddress  Addr
 

Definition at line 491 of file htne.cc.

References MIN, NE_get_seg_addr(), NE_get_seg_psize(), NE_get_seg_vsize(), NEAddress, ne_segment_headers::segment_count, ht_ne_shared_data::segments, and UINT.

bool NE_addr_to_ofs ht_ne_shared_data NE_shared,
NEAddress  Addr,
FILEOFS ofs
 

Definition at line 501 of file htne.cc.

References FILEOFS, MIN, NE_get_seg_addr(), NE_get_seg_ofs(), NE_get_seg_psize(), NE_get_seg_vsize(), NEAddress, ne_segment_headers::segment_count, ht_ne_shared_data::segments, and UINT.

bool NE_addr_to_segment ht_ne_shared_data NE_shared,
NEAddress  Addr,
int *  segment
 

Definition at line 478 of file htne.cc.

References MAX, NE_get_seg_addr(), NE_get_seg_psize(), NE_get_seg_vsize(), NEAddress, ne_segment_headers::segment_count, ht_ne_shared_data::segments, and UINT.

NEAddress NE_get_seg_addr ht_ne_shared_data NE_shared,
UINT  i
 

Definition at line 460 of file htne.cc.

References NE_MAKE_ADDR, NEAddress, and UINT.

Referenced by NEAnalyser::beginAnalysis(), NE_addr_is_physical(), NE_addr_to_ofs(), NE_addr_to_segment(), and NE_ofs_to_addr().

FILEOFS NE_get_seg_ofs ht_ne_shared_data NE_shared,
UINT  i
 

Definition at line 455 of file htne.cc.

References NE_HEADER::align, FILEOFS, ht_ne_shared_data::hdr, ht_ne_shared_data::segments, ne_segment_headers::segments, and UINT.

Referenced by NEAnalyser::beginAnalysis(), NE_addr_to_ofs(), NE_ofs_to_addr(), and ht_ne::relocate().

UINT NE_get_seg_psize ht_ne_shared_data NE_shared,
UINT  i
 

Definition at line 465 of file htne.cc.

References ht_ne_shared_data::segments, ne_segment_headers::segments, and UINT.

Referenced by NEAnalyser::beginAnalysis(), NE_addr_is_physical(), NE_addr_to_ofs(), NE_addr_to_segment(), NE_ofs_to_addr(), and ht_ne::relocate().

UINT NE_get_seg_vsize ht_ne_shared_data NE_shared,
UINT  i
 

Definition at line 472 of file htne.cc.

References ht_ne_shared_data::segments, ne_segment_headers::segments, and UINT.

Referenced by NEAnalyser::beginAnalysis(), NE_addr_is_physical(), NE_addr_to_ofs(), and NE_addr_to_segment().

bool NE_ofs_to_addr ht_ne_shared_data NE_shared,
FILEOFS  ofs,
NEAddress *  Addr
 

Definition at line 514 of file htne.cc.

References FILEOFS, NE_get_seg_addr(), NE_get_seg_ofs(), NE_get_seg_psize(), ne_segment_headers::segment_count, ht_ne_shared_data::segments, and UINT.


Variable Documentation

format_viewer_if htne_if
 

Initial value:

 {
        htne_init,
        0
}

Definition at line 79 of file htne.cc.


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