Changeset 174 for branches/virtualcpu4/UInstructionWriter.pas
- Timestamp:
- Apr 12, 2019, 12:06:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/virtualcpu4/UInstructionWriter.pas
r173 r174 150 150 procedure TInstructionWriter.Write8(Value: Byte); 151 151 begin 152 PByte( @Cpu.Memory[IP])^ := Value;152 PByte(Cpu.Memory + IP)^ := Value; 153 153 Inc(IP, SizeOf(Byte)); 154 154 end; … … 156 156 procedure TInstructionWriter.Write16(Value: Word); 157 157 begin 158 PWord( @Cpu.Memory[IP])^ := Value;158 PWord(Cpu.Memory + IP)^ := Value; 159 159 Inc(IP, SizeOf(Word)); 160 160 end; … … 162 162 procedure TInstructionWriter.Write32(Value: DWord); 163 163 begin 164 PDWord( @Cpu.Memory[IP])^ := Value;164 PDWord(Cpu.Memory + IP)^ := Value; 165 165 Inc(IP, SizeOf(DWord)); 166 166 end; … … 168 168 procedure TInstructionWriter.Write64(Value: QWord); 169 169 begin 170 PQWord( @Cpu.Memory[IP])^ := Value;170 PQWord(Cpu.Memory + IP)^ := Value; 171 171 Inc(IP, SizeOf(QWord)); 172 172 end;
Note:
See TracChangeset
for help on using the changeset viewer.