Переглянути джерело

Add tas to default Integer Arithmetic instructions.
Add xdef, globl, altmacro and noaltmacro to default GNU as directives.


git-svn-id: file:///var/svn/tigccpp/trunk@921 9552661e-59e3-4036-b4f2-dbe53926924f

kevinkofler 17 роки тому
батько
коміт
8caeb1d8e0
3 змінених файлів з 15 додано та 8 видалено
  1. 2 0
      ktigcc/NEWS
  2. 7 2
      ktigcc/preferences.cpp
  3. 6 6
      tigcc/ide/MasterUnit.pas

+ 2 - 0
ktigcc/NEWS

@@ -8,6 +8,8 @@ CVS HEAD (2006-11-16):
 * Fixed wrong length computations when writing to a file in UTF-8 or other
   multibyte charsets. (This broke debugging information for projects in a path
   containing non-ASCII characters.)
+* Added tas to the default Integer Arithmetic instructions.
+* Added xdef, globl, altmacro and noaltmacro to the default GNU as directives.
 
 
 KTIGCC 1.05 (2006-10-24):

+ 7 - 2
ktigcc/preferences.cpp

@@ -817,7 +817,8 @@ void resetSyntaxPreference(Syn_SettingsForDoc *syn)
                           "SUBA\n"
                           "SUBI\n"
                           "SUBQ\n"
-                          "SUBX\n");
+                          "SUBX\n"
+                          "TAS\n");
   Integer_Arithmetic.color=QColor(0,0,255);
   Integer_Arithmetic.style=0;
   Integer_Arithmetic.caseSensitive=false;
@@ -1007,6 +1008,7 @@ void resetSyntaxPreference(Syn_SettingsForDoc *syn)
   Assembler_Directives.list=QStringList::split('\n',
                             "abort\n"
                             "align\n"
+                            "altmacro\n"
                             "ascii\n"
                             "asciz\n"
                             "balign\n"
@@ -1039,6 +1041,7 @@ void resetSyntaxPreference(Syn_SettingsForDoc *syn)
                             "float\n"
                             "func\n"
                             "global\n"
+                            "globl\n"
                             "hword\n"
                             "ident\n"
                             "if\n"
@@ -1055,6 +1058,7 @@ void resetSyntaxPreference(Syn_SettingsForDoc *syn)
                             "long\n"
                             "macro\n"
                             "mri\n"
+                            "noaltmacro\n"
                             "nolist\n"
                             "octa\n"
                             "org\n"
@@ -1088,7 +1092,8 @@ void resetSyntaxPreference(Syn_SettingsForDoc *syn)
                             "uleb128\n"
                             "val\n"
                             "vtable_entry\n"
-                            "word\n");
+                            "word\n"
+                            "xdef\n");
   Assembler_Directives.color=QColor(0,0,255);
   Assembler_Directives.style=SYNS_CUSTOM|SYNS_BOLD;
   Assembler_Directives.caseSensitive=true;

+ 6 - 6
tigcc/ide/MasterUnit.pas

@@ -446,7 +446,7 @@ initialization
 		end;
 		with WordLists.Add do begin
 			Caption := 'Integer Arithmetic';
-			Words.CommaText := 'ADD,ADDA,ADDI,ADDQ,ADDX,CLR,CMP,CMPA,CMPI,CMPM,DIVS,DIVU,EXT,MULS,MULU,NEG,NEGX,SUB,SUBA,SUBI,SUBQ,SUBX';
+			Words.CommaText := 'ADD,ADDA,ADDI,ADDQ,ADDX,CLR,CMP,CMPA,CMPI,CMPM,DIVS,DIVU,EXT,MULS,MULU,NEG,NEGX,SUB,SUBA,SUBI,SUBQ,SUBX,TAS';
 			Color := clBlue;
 			CustomColor := True;
 			CaseSensitive := False;
@@ -498,13 +498,13 @@ initialization
 		end;
 		with WordLists.Add do begin
 			Caption := 'Assembler Directives';
-			Words.CommaText := 'abort,align,ascii,asciz,balign,balignw,balignl,byte,comm,data,'
+			Words.CommaText := 'abort,align,altmacro,ascii,asciz,balign,balignw,balignl,byte,comm,data,'
 				+ 'def,dim,double,eject,else,end,elseif,endef,endfunc,endif,endm,endr,equ,equiv,'
-				+ 'err,even,exitm,extern,fail,file,fill,float,func,global,hword,ident,if,include,'
-				+ 'incbin,int,irp,irpc,lcomm,lflags,line,ln,list,long,macro,mri,nolist,octa,org,'
+				+ 'err,even,exitm,extern,fail,file,fill,float,func,global,globl,hword,ident,if,include,'
+				+ 'incbin,int,irp,irpc,lcomm,lflags,line,ln,list,long,macro,mri,noaltmacro,nolist,octa,org,'
 				+ 'p2align,p2alignw,p2alignl,print,psize,purgem,quad,rept,sbttl,scl,section,set,'
 				+ 'short,single,size,sleb128,skip,space,stabd,stabn,stabs,string,struct,tag,text,'
-				+ 'title,type,uleb128,val,vtable_entry,word';
+				+ 'title,type,uleb128,val,vtable_entry,word,xdef';
 			Color := clBlue;
 			CustomColor := True;
 			Style := [fsBold];
@@ -572,7 +572,7 @@ initialization
 		end;
 		with WordLists.Add do begin
 			Caption := 'Integer Arithmetic';
-			Words.CommaText := 'ADD,ADDA,ADDI,ADDQ,ADDX,CLR,CMP,CMPA,CMPI,CMPM,DIVS,DIVU,EXT,MULS,MULU,NEG,NEGX,SUB,SUBA,SUBI,SUBQ,SUBX';
+			Words.CommaText := 'ADD,ADDA,ADDI,ADDQ,ADDX,CLR,CMP,CMPA,CMPI,CMPM,DIVS,DIVU,EXT,MULS,MULU,NEG,NEGX,SUB,SUBA,SUBI,SUBQ,SUBX,TAS';
 			Color := clBlue;
 			CustomColor := True;
 			CaseSensitive := False;