소스 검색

* fixed label and opcode on the same line

peter 26 년 전
부모
커밋
baaa6d85e1
2개의 변경된 파일13개의 추가작업 그리고 5개의 파일을 삭제
  1. 6 1
      compiler/ra386att.pas
  2. 7 4
      compiler/ra386int.pas

+ 6 - 1
compiler/ra386att.pas

@@ -272,6 +272,7 @@ begin
            { local variables are case sensitive }
            actasmtoken:=AS_LLABEL;
            c:=current_scanner^.asmgetchar;
+           firsttoken:=true;
            exit;
          end
         { must be a directive }
@@ -297,6 +298,7 @@ begin
         actasmtoken:=AS_LABEL;
         { let us point to the next character }
         c:=current_scanner^.asmgetchar;
+        firsttoken:=true;
         exit;
       end;
      { Opcode ? }
@@ -1930,7 +1932,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.50.2.1  1999-06-14 17:30:44  peter
+  Revision 1.50.2.2  1999-06-21 16:42:57  peter
+    * fixed label and opcode on the same line
+
+  Revision 1.50.2.1  1999/06/14 17:30:44  peter
     * align fixes from pierre
 
   Revision 1.51  1999/06/11 22:54:12  pierre

+ 7 - 4
compiler/ra386int.pas

@@ -1,6 +1,6 @@
 {
     $Id$
-    Copyright (c) 1997-98 by Carl Eric Codere
+    Copyright (c) 1997-99 by Carl Eric Codere and Peter Vreman
 
     Does the parsing process for the intel styled inline assembler.
 
@@ -254,6 +254,7 @@ begin
 { Local Label, Label, Directive, Prefix or Opcode }
   if firsttoken and not (c in [newline,#13,'{',';']) then
    begin
+     firsttoken:=FALSE;
      len:=0;
      while c in ['A'..'Z','a'..'z','0'..'9','_','@'] do
       begin
@@ -275,14 +276,13 @@ begin
           actasmtoken:=AS_LABEL;
         { let us point to the next character }
         c:=current_scanner^.asmgetchar;
+        firsttoken:=true;
         exit;
       end;
      { Are we trying to create an identifier with }
      { an at-sign...?                             }
      if forcelabel then
       Message(asmr_e_none_label_contain_at);
-     { we're not the first token anymore }
-     firsttoken:=FALSE;
      { opcode ? }
      If is_asmopcode(actasmpattern) then
       Begin
@@ -1640,7 +1640,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.37  1999-06-08 11:52:00  peter
+  Revision 1.37.2.1  1999-06-21 16:43:00  peter
+    * fixed label and opcode on the same line
+
+  Revision 1.37  1999/06/08 11:52:00  peter
     * fixed some intel bugs with scale parsing
     * end is now also a separator in many more cases