Changeset 218 for branches/CpuSingleSize/UInstructions.pas
- Timestamp:
- Oct 14, 2020, 7:51:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CpuSingleSize/UInstructions.pas
r216 r218 9 9 10 10 type 11 TParamType = (ptNone, ptNumber, ptReg );11 TParamType = (ptNone, ptNumber, ptReg, ptRegIndirect); 12 12 TParamTypeArray = array of TParamType; 13 13 14 TInstructionInfo = class 14 15 Instruction: TInstruction; … … 77 78 AddNew(inInc, 'INC', [ptReg], 'Increments value in specified register.'); 78 79 AddNew(inDec, 'DEC', [ptReg], 'Decrements value in specified register.'); 79 AddNew(inLoad, 'LD', [ptReg, ptReg ], 'Loads value from memory to register.');80 AddNew(inStore, 'ST', [ptReg , ptReg], 'Stores value from register to memory.');80 AddNew(inLoad, 'LD', [ptReg, ptRegIndirect], 'Loads value from memory to register.'); 81 AddNew(inStore, 'ST', [ptRegIndirect, ptReg], 'Stores value from register to memory.'); 81 82 AddNew(inAdd, 'ADD', [ptReg, ptReg], 'Adds second register to first register.'); 82 83 AddNew(inSub, 'SUB', [ptReg, ptReg], 'Subtracts second register from first register.'); 83 AddNew(inIn, 'IN', [ptReg, ptReg ], 'Reads value from input port to register.');84 AddNew(inOut, 'OUT', [ptReg , ptReg], 'Writes value from register to output port.');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 86 AddNew(inJumpZero, 'JZ', [ptReg, ptNumber], 'Jumps to given address if value of register is zero'); 86 87 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.