Ignore:
Timestamp:
Oct 20, 2020, 1:10:09 AM (4 years ago)
Author:
chronos
Message:
  • Added: Devices form with tree view of connected devices. Device control form can be opened by double click.
  • Modifid: IN/OUT instructions now use also device group index to directly specify which device should be read/written.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CpuSingleSize/UInstructions.pas

    r219 r220  
    99
    1010type
    11   TParamType = (ptNone, ptNumber, ptReg, ptRegIndirect, ptRegIndirectIndex);
     11  TParamType = (ptNone, ptNumber, ptReg, ptRegIndirect, ptRegIndirectIndex,
     12    ptRegIndirectGroup);
    1213  TParamTypeArray = array of TParamType;
    1314
     
    8283  AddNew(inAdd, 'ADD', [ptReg, ptReg], 'Adds second register to first register.');
    8384  AddNew(inSub, 'SUB', [ptReg, ptReg], 'Subtracts second register from first register.');
    84   AddNew(inIn, 'IN', [ptReg, ptRegIndirect], 'Reads value from input port to register.');
    85   AddNew(inOut, 'OUT', [ptRegIndirect, ptReg], 'Writes value from register to output port.');
     85  AddNew(inIn, 'IN', [ptReg, ptRegIndirectGroup], 'Reads value from input port to register.');
     86  AddNew(inOut, 'OUT', [ptRegIndirectGroup, ptReg], 'Writes value from register to output port.');
    8687  AddNew(inJumpZero, 'JZ', [ptReg, ptNumber], 'Jumps to given address if value of register is zero');
    8788  AddNew(inJumpNotZero, 'JNZ', [ptReg, ptNumber], 'Jumps to given address if value of register is not zero');
Note: See TracChangeset for help on using the changeset viewer.