Overlay Stub Format 
Author Message
 Overlay Stub Format

Hi,
I reverse-engineered these structures from a disassembly of the TP6
overlay
manager. You may (or may not) find them useful. (I doubt they've changed
much - if at all - in TP7).

Chris.

---------------------------------------------------------------------------

type
  TOvrCall = record
             case Byte of
               0: (Unload: array[1..2] of Byte;
                   SavOfs: Word);
               1: (Load:   Byte;
                   JmpOfs: Word;
                   JmpSeg: Word)
             end;

  POvrStubRec = ^TOvrStubRec;
  TOvrStubRec = record
                  IntCall:    Word; (* 0000 = INT $3F *)
                  RetOfs:     Word; (* 0002 = offset of latest RET to
this Ovr *)
                  Unknown1:   array[1..4] of Byte;
                  OvrLen:     Word; (* 0008 = Byte length of overlay
code seg  *)
                  RelocLen:   Word; (* 000A = Byte length of relocation
table  *)
                  OvrEntries: Word; (* 000C = number of routines in
overlay    *)
                  Unknown2:   Word; (* 000E *)
                  OvrSeg:     Word; (* 0010 = current code segment of
overlay  *)
                  Probation:  Word; (* 0012 *)
                  Next:       Word; (* 0014 = seg of next loaded overlay
stub  *)
                  Unknown3:   array[1..10] of Byte;
                  CallCode:   array[0..0] of TOvrCall
                end;



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. .MAP file format and overlay debugger hook

2. User defined stub with BP7 ?

3. BP7 STUB

4. Where can I set the STUB file in Delphi

5. over-110.zip Optimized TP6/BP7 Overlay unit

6. over-101.zip Optimized TP6/BP7 Overlay unit

7. error 208 overlay manager

8. TP6, Overlay, Map files

9. Source of overlay unit available

10. Swap heap & overlay space

11. convert differents formats under delphi format

12. Overlay unit

 

 
Powered by phpBB® Forum Software