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

htne.h File Reference

#include "htobj.h"
#include "formats.h"
#include "relfile.h"
#include "nestruct.h"

Go to the source code of this file.

Classes

class  ht_ne
class  ht_ne_entrypoint
class  ht_ne_reloc_entry
class  ht_ne_reloc_file
struct  ht_ne_shared_data
class  ne_import_rec
struct  ne_segment_headers

Defines

#define DESC_NE   "ne - win16,os2 new exe"
#define DESC_NE_HEADER   "ne/header"
#define DESC_NE_SEGMENTS   "ne/segments"
#define DESC_NE_IMPORTS   "ne/imports"
#define DESC_NE_ENTRYPOINTS   "ne/entrypoints"
#define DESC_NE_NAMES   "ne/names"
#define DESC_NE_IMAGE   "ne/image"
#define ATOM_NE_FLAGS   0x4e450000
#define ATOM_NE_FLAGS_STR   "4e450000"
#define ATOM_NE_OS   0x4e450001
#define ATOM_NE_OS_STR   "4e450001"
#define ATOM_NE_SEGFLAGS   0x4e450002
#define ATOM_NE_SEGFLAGS_STR   "4e450002"
#define ATOM_NE_ENTFLAGS   0x4e450003
#define ATOM_NE_ENTFLAGS_STR   "4e450003"
#define NEAddress   dword
#define NE_MAKE_ADDR(seg, ofs)   ((seg)*0x10000+(ofs))
#define NE_ADDR_SEG(a)   ((a)>>16)
#define NE_ADDR_OFS(a)   ((a)&0xffff)

Functions

FILEOFS NE_get_seg_ofs (ht_ne_shared_data *NE_shared, UINT i)
dword 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, dword Addr, int *segment)
bool NE_addr_is_physical (ht_ne_shared_data *NE_shared, dword Addr)
bool NE_addr_to_ofs (ht_ne_shared_data *NE_shared, dword Addr, FILEOFS *ofs)
bool NE_ofs_to_addr (ht_ne_shared_data *NE_shared, FILEOFS ofs, dword *Addr)

Variables

format_viewer_if htne_if


Define Documentation

#define ATOM_NE_ENTFLAGS   0x4e450003
 

Definition at line 47 of file htne.h.

#define ATOM_NE_ENTFLAGS_STR   "4e450003"
 

Definition at line 48 of file htne.h.

#define ATOM_NE_FLAGS   0x4e450000
 

Definition at line 38 of file htne.h.

#define ATOM_NE_FLAGS_STR   "4e450000"
 

Definition at line 39 of file htne.h.

#define ATOM_NE_OS   0x4e450001
 

Definition at line 41 of file htne.h.

#define ATOM_NE_OS_STR   "4e450001"
 

Definition at line 42 of file htne.h.

#define ATOM_NE_SEGFLAGS   0x4e450002
 

Definition at line 44 of file htne.h.

#define ATOM_NE_SEGFLAGS_STR   "4e450002"
 

Definition at line 45 of file htne.h.

#define DESC_NE   "ne - win16,os2 new exe"
 

Definition at line 30 of file htne.h.

Referenced by ht_ne::init().

#define DESC_NE_ENTRYPOINTS   "ne/entrypoints"
 

Definition at line 34 of file htne.h.

#define DESC_NE_HEADER   "ne/header"
 

Definition at line 31 of file htne.h.

#define DESC_NE_IMAGE   "ne/image"
 

Definition at line 36 of file htne.h.

#define DESC_NE_IMPORTS   "ne/imports"
 

Definition at line 33 of file htne.h.

#define DESC_NE_NAMES   "ne/names"
 

Definition at line 35 of file htne.h.

#define DESC_NE_SEGMENTS   "ne/segments"
 

Definition at line 32 of file htne.h.

#define NE_ADDR_OFS  )     ((a)&0xffff)
 

Definition at line 167 of file htne.h.

Referenced by NEAnalyser::beginAnalysis(), and NEAnalyser::fileofsToAddress().

#define NE_ADDR_SEG  )     ((a)>>16)
 

Definition at line 166 of file htne.h.

Referenced by NEAnalyser::beginAnalysis(), and NEAnalyser::fileofsToAddress().

#define NE_MAKE_ADDR seg,
ofs   )     ((seg)*0x10000+(ofs))
 

Definition at line 165 of file htne.h.

Referenced by NEAnalyser::beginAnalysis(), NEAnalyser::convertAddressToNEAddress(), NE_get_seg_addr(), and ht_ne::relocate_single().

#define NEAddress   dword
 

Definition at line 164 of file htne.h.

Referenced by NEAnalyser::addressToFileofs(), NEAnalyser::beginAnalysis(), NEAnalyser::fileofsToAddress(), NEAnalyser::getSegmentNameByAddress(), NE_addr_is_physical(), NE_addr_to_ofs(), NE_addr_to_segment(), NE_get_seg_addr(), ht_ne::relocate_single(), and NEAnalyser::validAddress().


Function Documentation

bool NE_addr_is_physical ht_ne_shared_data NE_shared,
dword  Addr
 

Referenced by NEAnalyser::validAddress().

bool NE_addr_to_ofs ht_ne_shared_data NE_shared,
dword  Addr,
FILEOFS ofs
 

Referenced by NEAnalyser::addressToFileofs(), and ht_ne::relocate_single().

bool NE_addr_to_segment ht_ne_shared_data NE_shared,
dword  Addr,
int *  segment
 

Referenced by NEAnalyser::getSegmentNameByAddress(), and NEAnalyser::validAddress().

dword 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, ne_segment_headers::segments, ht_ne_shared_data::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 ne_segment_headers::segments, ht_ne_shared_data::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 ne_segment_headers::segments, ht_ne_shared_data::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,
dword *  Addr
 

Referenced by NEAnalyser::fileofsToAddress().


Variable Documentation

format_viewer_if htne_if
 

Definition at line 102 of file htne.h.


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