|
@@ -3668,6 +3668,8 @@ cleanup:
|
|
begin
|
|
begin
|
|
Header.InitialIP:=EntrySym.address;
|
|
Header.InitialIP:=EntrySym.address;
|
|
Header.InitialCS:=TNewExeSection(EntrySym.objsection.ExeSection).MemBasePos;
|
|
Header.InitialCS:=TNewExeSection(EntrySym.objsection.ExeSection).MemBasePos;
|
|
|
|
+ Header.InitialSP:=0;
|
|
|
|
+ Header.InitialSS:=Header.AutoDataSegmentNumber;
|
|
Header.WriteTo(FWriter);
|
|
Header.WriteTo(FWriter);
|
|
{ todo: write the rest of the file as well }
|
|
{ todo: write the rest of the file as well }
|
|
Result:=True;
|
|
Result:=True;
|