Browse Source

* removed some Hints
* small speed optimization for AsmLn

peter 27 years ago
parent
commit
b7ff96bb48
3 changed files with 25 additions and 8 deletions
  1. 15 3
      compiler/assemble.pas
  2. 5 3
      compiler/parser.pas
  3. 5 2
      compiler/pmodules.pas

+ 15 - 3
compiler/assemble.pas

@@ -130,7 +130,7 @@ end;
 Procedure TAsmList.AsmWriteLn(const s:string);
 Procedure TAsmList.AsmWriteLn(const s:string);
 begin
 begin
   AsmWrite(s);
   AsmWrite(s);
-  AsmWrite(target_info.newline);
+  AsmLn;
 end;
 end;
 
 
 
 
@@ -157,7 +157,15 @@ end;
 
 
 Procedure TAsmList.AsmLn;
 Procedure TAsmList.AsmLn;
 begin
 begin
-  AsmWrite(target_info.newline);
+  if OutCnt>=AsmOutSize-2 then
+   AsmFlush;
+  OutBuf[OutCnt]:=target_info.newline[1];
+  inc(OutCnt); 
+  if length(target_info.newline)>1 then
+   begin
+     OutBuf[OutCnt]:=target_info.newline[2];
+     inc(OutCnt); 
+   end;
 end;
 end;
 
 
 
 
@@ -410,7 +418,11 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.2  1998-04-08 11:34:18  peter
+  Revision 1.3  1998-04-10 14:41:43  peter
+    * removed some Hints
+    * small speed optimization for AsmLn
+
+  Revision 1.2  1998/04/08 11:34:18  peter
     * nasm works (linux only tested)
     * nasm works (linux only tested)
 
 
   Revision 1.1.1.1  1998/03/25 11:18:16  root
   Revision 1.1.1.1  1998/03/25 11:18:16  root

+ 5 - 3
compiler/parser.pas

@@ -211,8 +211,6 @@ unit parser;
 
 
       var
       var
          a : PAsmFile;
          a : PAsmFile;
-         g : file;
-         ftime : longint;
       label
       label
          done;
          done;
 
 
@@ -532,7 +530,11 @@ done:
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.4  1998-04-08 16:58:03  pierre
+  Revision 1.5  1998-04-10 14:41:43  peter
+    * removed some Hints
+    * small speed optimization for AsmLn
+
+  Revision 1.4  1998/04/08 16:58:03  pierre
     * several bugfixes
     * several bugfixes
       ADD ADC and AND are also sign extended
       ADD ADC and AND are also sign extended
       nasm output OK (program still crashes at end
       nasm output OK (program still crashes at end

+ 5 - 2
compiler/pmodules.pas

@@ -196,7 +196,6 @@ unit pmodules;
          pu : pused_unit;
          pu : pused_unit;
          a  : pasmfile;
          a  : pasmfile;
          hs : pstring;
          hs : pstring;
-         i  : longint;
       begin
       begin
          old_current_module:=current_module;
          old_current_module:=current_module;
          { be sure not to mix lines from different files }
          { be sure not to mix lines from different files }
@@ -935,7 +934,11 @@ unit pmodules;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.3  1998-04-03 09:51:00  daniel
+  Revision 1.4  1998-04-10 14:41:43  peter
+    * removed some Hints
+    * small speed optimization for AsmLn
+
+  Revision 1.3  1998/04/03 09:51:00  daniel
   * Fixed heap allocation for OS/2.
   * Fixed heap allocation for OS/2.
 
 
   Revision 1.2  1998/03/30 15:53:01  florian
   Revision 1.2  1998/03/30 15:53:01  florian