Sfoglia il codice sorgente

+ added support for i8086 in mkx86ins.pp

git-svn-id: trunk@25601 -
nickysn 12 anni fa
parent
commit
c47d745bcf
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. 13 0
      compiler/utils/mkx86ins.pp

+ 13 - 0
compiler/utils/mkx86ins.pp

@@ -21,6 +21,7 @@ const
 var
 var
    s : string;
    s : string;
    i : longint;
    i : longint;
+   i8086  : boolean;
    x86_64 : boolean;
    x86_64 : boolean;
 
 
     function lower(const s : string) : string;
     function lower(const s : string) : string;
@@ -204,6 +205,7 @@ var
    optypes : array[1..max_operands] of string;
    optypes : array[1..max_operands] of string;
 begin
 begin
    writeln('Nasm Instruction Table Converter Version ',Version);
    writeln('Nasm Instruction Table Converter Version ',Version);
+   i8086:=paramstr(1)='i8086';
    x86_64:=paramstr(1)='x86_64';
    x86_64:=paramstr(1)='x86_64';
    insns:=0;
    insns:=0;
    maxinfolen:=0;
    maxinfolen:=0;
@@ -220,6 +222,17 @@ begin
        openinc(intfile,'x8664int.inc');
        openinc(intfile,'x8664int.inc');
        openinc(propfile,'x8664pro.inc');
        openinc(propfile,'x8664pro.inc');
      end
      end
+   else if i8086 then
+     begin
+       { create inc files }
+       openinc(insfile,'i8086tab.inc');
+       openinc(opfile,'i8086op.inc');
+       assign(nopfile,'i8086nop.inc');
+       openinc(attfile,'i8086att.inc');
+       openinc(attsuffile,'i8086atts.inc');
+       openinc(intfile,'i8086int.inc');
+       openinc(propfile,'i8086prop.inc');
+     end
    else
    else
      begin
      begin
        { create inc files }
        { create inc files }