Changeset 215 for branches/virtcpu fixed int/UInstructionWriter.pas
- Timestamp:
- Aug 19, 2020, 11:54:20 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/virtcpu fixed int/UInstructionWriter.pas
r168 r215 6 6 7 7 uses 8 Classes, SysUtils, U Machine;8 Classes, SysUtils, UCpu; 9 9 10 10 type … … 28 28 procedure Subtract(R1, R2: Integer); 29 29 procedure Jump(Addr: Integer); 30 procedure Jump NotZero(R1: Integer;Addr: Integer);31 procedure JumpZero(R1: Integer; Addr: Integer);30 procedure JumpCond(Addr: Integer); 31 procedure TestZero(R: Integer); 32 32 {$IFDEF EXT_REL_JUMP}procedure JumpRelative(Addr: Integer);{$ENDIF} 33 procedure SysCall; 33 34 procedure Increment(R: Integer); 34 35 procedure Decrement(R: Integer); … … 112 113 end; 113 114 114 procedure TInstructionWriter.Jump NotZero(R1: Integer;Addr: Integer);115 procedure TInstructionWriter.JumpCond(Addr: Integer); 115 116 begin 116 Write(T(opJumpNotZero)); 117 Write(R1); 117 Write(T(opJumpCond)); 118 118 Write(Addr); 119 119 end; 120 120 121 procedure TInstructionWriter. JumpZero(R1: Integer; Addr: Integer);121 procedure TInstructionWriter.TestZero(R: Integer); 122 122 begin 123 Write(T(opJumpZero)); 124 Write(R1); 125 Write(Addr); 123 Write(T(opTestZero)); 124 Write(R); 125 end; 126 127 procedure TInstructionWriter.SysCall; 128 begin 129 Write(T(opSysCall)); 126 130 end; 127 131
Note:
See TracChangeset
for help on using the changeset viewer.