Changeset 178 for branches/virtualcpu4/UInstructionWriter.pas
- Timestamp:
- Apr 12, 2019, 2:19:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/virtualcpu4/UInstructionWriter.pas
r177 r178 45 45 procedure JumpRelNotZero(Addr: QWord); 46 46 procedure JumpRelZero(Addr: QWord); 47 procedure Push(Reg: TRegIndex); 48 procedure Pop(Reg: TRegIndex); 47 49 procedure DataPrefix8; 48 50 procedure DataPrefix16; … … 187 189 end; 188 190 191 procedure TInstructionWriter.Push(Reg: TRegIndex); 192 begin 193 PrefixBegin; 194 Write8(Byte(opPush)); 195 Write8(Reg); 196 PrefixEnd; 197 end; 198 199 procedure TInstructionWriter.Pop(Reg: TRegIndex); 200 begin 201 PrefixBegin; 202 Write8(Byte(opPop)); 203 Write8(Reg); 204 PrefixEnd; 205 end; 206 189 207 procedure TInstructionWriter.DataPrefix8; 190 208 begin
Note:
See TracChangeset
for help on using the changeset viewer.