Quellcode durchsuchen

+ added properties for specifying a start address in the MODEND omf record (reading/writing them to file not yet implemented)

git-svn-id: trunk@30586 -
nickysn vor 10 Jahren
Ursprung
Commit
d3cc0770ac
1 geänderte Dateien mit 20 neuen und 0 gelöschten Zeilen
  1. 20 0
      compiler/omfbase.pas

+ 20 - 0
compiler/omfbase.pas

@@ -388,6 +388,15 @@ interface
       FHasStartAddress: Boolean;
       FHasStartAddress: Boolean;
       FSegmentBit: Boolean;
       FSegmentBit: Boolean;
       FLogicalStartAddress: Boolean;
       FLogicalStartAddress: Boolean;
+
+      FFrameMethod: TOmfFixupFrameMethod;
+      FFrameDatum: Integer;
+      FTargetMethod: TOmfFixupTargetMethod;
+      FTargetDatum: Integer;
+      FTargetDisplacement: DWord;
+
+      FPhysFrameNumber: Word;
+      FPhysOffset: DWord;
     public
     public
       procedure DecodeFrom(RawRecord: TOmfRawRecord);override;
       procedure DecodeFrom(RawRecord: TOmfRawRecord);override;
       procedure EncodeTo(RawRecord: TOmfRawRecord);override;
       procedure EncodeTo(RawRecord: TOmfRawRecord);override;
@@ -397,6 +406,17 @@ interface
       property HasStartAddress: Boolean read FHasStartAddress write FHasStartAddress;
       property HasStartAddress: Boolean read FHasStartAddress write FHasStartAddress;
       property SegmentBit: Boolean read FSegmentBit write FSegmentBit;
       property SegmentBit: Boolean read FSegmentBit write FSegmentBit;
       property LogicalStartAddress: Boolean read FLogicalStartAddress write FLogicalStartAddress;
       property LogicalStartAddress: Boolean read FLogicalStartAddress write FLogicalStartAddress;
+
+      { properties, specifying a logical start address (used when LogicalStartAddress=true) }
+      property FrameMethod: TOmfFixupFrameMethod read FFrameMethod write FFrameMethod;
+      property FrameDatum: Integer read FFrameDatum write FFrameDatum;
+      property TargetMethod: TOmfFixupTargetMethod read FTargetMethod write FTargetMethod;
+      property TargetDatum: Integer read FTargetDatum write FTargetDatum;
+      property TargetDisplacement: DWord read FTargetDisplacement write FTargetDisplacement;
+
+      { properties, specifying a physical start address (used when LogicalStartAddress=false) }
+      property PhysFrameNumber: Word read FPhysFrameNumber write FPhysFrameNumber;
+      property PhysOffset: DWord read FPhysOffset write FPhysOffset;
     end;
     end;
 
 
     { TOmfSubRecord_FIXUP }
     { TOmfSubRecord_FIXUP }