Changeset 31 for branches/UltimatOS/UCpu.pas
- Timestamp:
- Jul 6, 2022, 1:05:27 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UltimatOS/UCpu.pas
r30 r31 9 9 TInstruction = (inNop, inHalt, inSet, inInput, inOutput, inInc, inDec, inJp, 10 10 inJpz, inJpnz, inAdd, inSub, inCall, inRet, inPush, inPop, inCopy, 11 inShl, inShr, inLoad, in Store, inMul, inAnd, inOr, inXor);11 inShl, inShr, inLoad, inLoadi, inStore, inMul, inAnd, inAndi, inOr, inXor); 12 12 TAddress = Integer; 13 13 PAddress = ^TAddress; … … 107 107 R[RegIndex] := PData(@Memory.Data[R[RegIndex2]])^; 108 108 end; 109 inLoadi: begin 110 RegIndex := ReadByte; 111 Address := ReadAddress; 112 R[RegIndex] := PData(@Memory.Data[Address])^; 113 end; 109 114 inStore: begin 110 115 RegIndex := ReadByte; … … 194 199 RegIndex2 := ReadByte; 195 200 R[RegIndex] := R[RegIndex] and R[RegIndex2]; 201 end; 202 inAndi: begin 203 RegIndex := ReadByte; 204 R[RegIndex] := R[RegIndex] and ReadData; 196 205 end; 197 206 inOr: begin
Note:
See TracChangeset
for help on using the changeset viewer.