PalmBinaryFile.cpp File Reference

#include <assert.h>
#include "PalmBinaryFile.h"
#include "palmsystraps.h"

Go to the source code of this file.

Defines

#define OFFSET_ID   0x40
#define UC(p)   ((unsigned char*)p)
#define UINT4(p)
#define WILD   0x4AFC

Functions

BinaryFileconstruct ()
SWordfindPattern (SWord *start, const SWord *patt, int pattSize, int max)

Variables

static SWord CWCallMain []
static SWord CWFirstJump []
static SWord GccCallMain []


Define Documentation

#define OFFSET_ID   0x40
 

Referenced by PalmBinaryFile::GetAppID().

#define UC  )     ((unsigned char*)p)
 

Definition at line 32 of file PalmBinaryFile.cpp.

#define UINT4  ) 
 

Value:

((UC(p)[0] << 24) + (UC(p)[1] << 16) + (UC(p)[2] << 8) + \
    UC(p)[3])

Definition at line 33 of file PalmBinaryFile.cpp.

#define WILD   0x4AFC
 

Definition at line 371 of file PalmBinaryFile.cpp.


Function Documentation

BinaryFile* construct  ) 
 

Definition at line 498 of file PalmBinaryFile.cpp.

SWord* findPattern SWord start,
const SWord patt,
int  pattSize,
int  max
 

Definition at line 399 of file PalmBinaryFile.cpp.

Referenced by PalmBinaryFile::GetMainEntryPoint().


Variable Documentation

SWord CWCallMain[] [static]
 

Initial value:

 {
    0x487a, 14,         
    0x487a, 4,          
    0x0697, WILD, WILD, 
    0x4e75}

Definition at line 377 of file PalmBinaryFile.cpp.

Referenced by PalmBinaryFile::GetMainEntryPoint().

SWord CWFirstJump[] [static]
 

Initial value:

 {
    0x0, 0x1,           
    0x487a, 0x4,        
    0x0697, WILD, WILD, 
    0x4e75}

Definition at line 372 of file PalmBinaryFile.cpp.

Referenced by PalmBinaryFile::GetMainEntryPoint().

SWord GccCallMain[] [static]
 

Initial value:

 {
    0x3F04,             
    0x6100, WILD,       
    0x3F04,             
    0x2F05,             
    0x3F06,             
    0x6100, WILD}

Definition at line 382 of file PalmBinaryFile.cpp.

Referenced by PalmBinaryFile::GetMainEntryPoint().


Generated on Tue Sep 19 21:18:37 2006 for Boomerang by  doxygen 1.4.6