소스 검색

+ added cpu_mos_6502_rev_a and cpu_mos_6502_rev_b CPU types

Nikolay Nikolov 1 년 전
부모
커밋
b5044a32ef
2개의 변경된 파일10개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 2
      compiler/globals.pas
  2. 8 5
      compiler/mos6502/cpuinfo.pas

+ 2 - 2
compiler/globals.pas

@@ -666,8 +666,8 @@ Const
         fputype : fpu_fd;
   {$endif loongarch64}
   {$ifdef mos6502}
-        cputype : cpu_mos_6502;
-        optimizecputype : cpu_mos_6502;
+        cputype : cpu_mos_6502_rev_a;
+        optimizecputype : cpu_mos_6502_rev_a;
         asmcputype : cpu_none;
         fputype : fpu_soft;
   {$endif mos6502}

+ 8 - 5
compiler/mos6502/cpuinfo.pas

@@ -35,7 +35,8 @@ Type
    { possible supported processors for this target }
    tcputype =
       (cpu_none,
-       cpu_mos_6502
+       cpu_mos_6502_rev_a,
+       cpu_mos_6502_rev_b
       );
 
    tfputype =
@@ -86,8 +87,9 @@ Const
      pocall_softfloat
    ];
 
-   cputypestr : array[tcputype] of string[5] = ('',
-     'MOS6502'
+   cputypestr : array[tcputype] of string[13] = ('',
+     'MOS6502 rev.A',
+     'MOS6502 rev.B'
    );
 
    fputypestr : array[tfputype] of string[6] = (
@@ -118,8 +120,9 @@ Const
 
  const
    cpu_capabilities : array[tcputype] of set of tcpuflags =
-     ( { cpu_none  } [],
-       { cpu_mos_6502  } []
+     ( { cpu_none  }          [],
+       { cpu_mos_6502_rev_a } [],
+       { cpu_mos_6502_rev_b } [CPU6502_HAS_ROR]
      );
 
 Implementation