* ti8086nodeutils.InsertMemorySizes: stack segment creation moved to a separate

method

git-svn-id: trunk@27851 -
This commit is contained in:
nickysn 2014-06-04 13:44:10 +00:00
parent 886159e73a
commit 70732aedbb

View File

@ -32,6 +32,7 @@ interface
type
ti8086nodeutils = class(tnodeutils)
class procedure InsertMemorySizes; override;
class procedure InsertStackSegment;
end;
@ -44,12 +45,17 @@ implementation
class procedure ti8086nodeutils.InsertMemorySizes;
var
stacksizeleft,stackblock: LongInt;
i: Integer;
begin
inherited;
if current_settings.x86memorymodel in x86_far_data_models then
InsertStackSegment;
end;
class procedure ti8086nodeutils.InsertStackSegment;
var
stacksizeleft,stackblock: LongInt;
i: Integer;
begin
maybe_new_object_file(current_asmdata.asmlists[al_globals]);
new_section(current_asmdata.asmlists[al_globals],sec_stack,'__stack', 16);
@ -68,7 +74,6 @@ implementation
inc(i);
end;
end;
end;
begin