Changeset 223 for branches/CpuSingleSize/Forms/UFormCpu.pas
- Timestamp:
- Jul 12, 2022, 10:43:40 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CpuSingleSize/Forms/UFormCpu.pas
r216 r223 1 1 unit UFormCpu; 2 3 {$mode delphi}4 2 5 3 interface … … 49 47 I: Integer; 50 48 begin 51 if Item.Index * DataPerLine < Length(Cpu. Data) then begin49 if Item.Index * DataPerLine < Length(Cpu.Memory) then begin 52 50 Item.Caption := IntToHex(Item.Index * DataPerLine, 8); 53 51 Line := ''; 54 52 for I := 0 to DataPerLine - 1 do 55 Line := Line + IntToHex(Cpu. Data[Item.Index * DataPerLine + I], 4) + ' ';53 Line := Line + IntToHex(Cpu.Memory[Item.Index * DataPerLine + I], 4) + ' '; 56 54 Item.SubItems.Add(Line); 57 55 end; … … 63 61 if Item.Index = 0 then begin 64 62 Item.Caption := 'IP'; 65 Item.SubItems.Add(IntToHex(Cpu.I P, 8));63 Item.SubItems.Add(IntToHex(Cpu.InstructionPointer, 8)); 66 64 end else 67 65 if Item.Index = 1 then begin 68 66 Item.Caption := 'SP'; 69 Item.SubItems.Add(IntToHex(Cpu.S P, 8));67 Item.SubItems.Add(IntToHex(Cpu.StackPointer, 8)); 70 68 end else begin 71 69 Item.Caption := 'R' + IntToStr(Item.Index - 2); … … 77 75 procedure TFormCpu.Timer1Timer(Sender: TObject); 78 76 begin 79 ListViewMemory.Items.Count := Length(Cpu. Data) div DataPerLine;77 ListViewMemory.Items.Count := Length(Cpu.Memory) div DataPerLine; 80 78 ListViewMemory.Refresh; 81 79 ListViewRegs.Items.Count := Length(Cpu.R) + 2;
Note:
See TracChangeset
for help on using the changeset viewer.