Ignore:
Timestamp:
Oct 3, 2023, 12:09:51 AM (8 months ago)
Author:
chronos
Message:
  • Added: More devices.
Location:
branches/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/templates

    • Property svn:ignore set to
      lib
      templates.res
      templates.lps
      templates
  • branches/templates/Cpu.pas

    r43 r44  
    99  {$MACRO ON}
    1010
    11   TOpcode = (opNop, opHalt,
     11  TOpcode = (opNop, opHalt, opInt, opSetC, opResC,
    1212    opLoadImmediate, opLoadImmediate8, opLoadImmediate16, opLoadImmediate32, opLoadImmediate64,
    13     opOutput, opOutput8, opOutput16, opOutput32, opOutput64
     13    opLoad, opLoad8, opLoad16, opLoad32, opLoad64,
     14    opStore, opStore8, opStore16, opStore32, opStore64,
     15    opLoadBase, opLoadBase8, opLoadBase16, opLoadBase32, opLoadBase64,
     16    opStoreBase, opStoreBase8, opStoreBase16, opStoreBase32, opStoreBase64,
     17    opInput, opInput8, opInput16, opInput32, opInput64,
     18    opOutput, opOutput8, opOutput16, opOutput32, opOutput64,
     19    opInc, opInc8, opInc16, opInc32, opInc64,
     20    opDec, opDec8, opDec16, opDec32, opDec64,
     21    opAdd, opAdd8, opAdd16, opAdd32, opAdd64,
     22    opSub, opSub8, opSub16, opSub32, opSub64,
     23    opMul, opMul8, opMul16, opMul32, opMul64,
     24    opDiv, opDiv8, opDiv16, opDiv32, opDiv64,
     25    opMod, opMod8, opMod16, opMod32, opMod64,
     26    opShr, opShr8, opShr16, opShr32, opShr64,
     27    opShl, opShl8, opShl16, opShl32, opShl64,
     28    opRor,
     29    opRol,
     30    opJump,
     31    opJumpRel,
     32    opCall,
     33    opRet,
     34    opRetI,
     35    opPush, opPush8, opPush16, opPush32, opPush64,
     36    opPop, opPop8, opPop16, opPop32, opPop64,
     37    opXor,
     38    opOr,
     39    opAnd,
     40    opLoadSys,
     41    opStoreSys
    1442    );
    1543
     
    1947  {$DEFINE TGCpuWidth := 8}
    2048  {$DEFINE INTERFACE}
    21   {$I 'GenericCpu.inc'}
     49  {$I 'Cpu.inc'}
    2250
    2351  {$DEFINE TGCpu := TCpu16}
     
    2654  {$DEFINE TGCpuWidth := 16}
    2755  {$DEFINE INTERFACE}
    28   {$I 'GenericCpu.inc'}
     56  {$I 'Cpu.inc'}
    2957
    3058  {$DEFINE TGCpu := TCpu32}
     
    3361  {$DEFINE TGCpuWidth := 32}
    3462  {$DEFINE INTERFACE}
    35   {$I 'GenericCpu.inc'}
     63  {$I 'Cpu.inc'}
    3664
    3765  {$DEFINE TGCpu := TCpu64}
     
    4068  {$DEFINE TGCpuWidth := 64}
    4169  {$DEFINE INTERFACE}
    42   {$I 'GenericCpu.inc'}
     70  {$I 'Cpu.inc'}
    4371
    4472  { TCpu }
     
    140168{$DEFINE TGCpuWidth := 8}
    141169{$DEFINE IMPLEMENTATION}
    142 {$I 'GenericCpu.inc'}
     170{$I 'Cpu.inc'}
    143171
    144172{$DEFINE TGCpu := TCpu16}
     
    147175{$DEFINE TGCpuWidth := 16}
    148176{$DEFINE IMPLEMENTATION}
    149 {$I 'GenericCpu.inc'}
     177{$I 'Cpu.inc'}
    150178
    151179{$DEFINE TGCpu := TCpu32}
     
    154182{$DEFINE TGCpuWidth := 32}
    155183{$DEFINE IMPLEMENTATION}
    156 {$I 'GenericCpu.inc'}
     184{$I 'Cpu.inc'}
    157185
    158186{$DEFINE TGCpu := TCpu64}
     
    161189{$DEFINE TGCpuWidth := 64}
    162190{$DEFINE IMPLEMENTATION}
    163 {$I 'GenericCpu.inc'}
     191{$I 'Cpu.inc'}
    164192
    165193end.
Note: See TracChangeset for help on using the changeset viewer.