Ignore:
Timestamp:
Oct 14, 2020, 8:04:25 PM (4 years ago)
Author:
chronos
Message:
  • Added: New LDI and STI instruction for indexed access to memory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CpuSingleSize/UInstructions.pas

    r218 r219  
    99
    1010type
    11   TParamType = (ptNone, ptNumber, ptReg, ptRegIndirect);
     11  TParamType = (ptNone, ptNumber, ptReg, ptRegIndirect, ptRegIndirectIndex);
    1212  TParamTypeArray = array of TParamType;
    1313
     
    100100  AddNew(inJump, 'JP', [ptNumber], 'Unconditional absolute jump to defined address.');
    101101  AddNew(inJumpRel, 'JR', [ptNumber], 'Unconditional relative jump to defined address.');
     102  AddNew(inLoadIndex, 'LDI', [ptReg, ptRegIndirectIndex], 'Loads value from memory with numeric index to register.');
     103  AddNew(inStoreIndex, 'STI', [ptRegIndirectIndex, ptReg], 'Stores value from register to memory with numeric index .');
    102104end;
    103105
Note: See TracChangeset for help on using the changeset viewer.