Changeset 78
- Timestamp:
- Jan 1, 2017, 12:59:53 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 5 5 LazFuck 6 6 compiled 7 heaptrclog.trc
-
- Property svn:ignore
-
trunk/Forms/UFormMemory.pas
r67 r78 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls ;9 ComCtrls, Math; 10 10 11 11 const … … 42 42 if Core.CurrentTarget is TTargetInterpretter then 43 43 with TTargetInterpretter(Core.CurrentTarget) do begin 44 ListViewMemory.Items.Count := Trunc(Length(Memory)/ RowSize);44 ListViewMemory.Items.Count := Ceil(MemoryMaxUsed / RowSize); 45 45 ListViewMemory.Refresh; 46 46 end; … … 54 54 if Core.CurrentTarget is TTargetInterpretter then 55 55 with TTargetInterpretter(Core.CurrentTarget) do 56 if (Item.Index >= 0) and (Item.Index < Trunc(Length(Memory)/ RowSize)) then begin56 if (Item.Index >= 0) and (Item.Index <= Trunc(MemoryMaxUsed / RowSize)) then begin 57 57 Item.Caption := IntToHex(Item.Index * RowSize, 8); 58 58 Row := ''; 59 59 for I := 0 to RowSize - 1 do 60 Row := Row + ' ' + IntToHex(Memory[Item.Index * RowSize + I], 2); 60 if (Item.Index * RowSize + I) < MemoryMaxUsed then 61 Row := Row + ' ' + IntToHex(Memory[Item.Index * RowSize + I], 2); 61 62 Item.SubItems.Add(Row); 62 63 end; -
trunk/Install/deb/debian/control
r75 r78 1 1 Source: lazfuck 2 2 Maintainer: Chronos <robie@centrum.cz> 3 Section: utils3 Section: devel 4 4 Priority: optional 5 5 Standards-Version: 1.0.0 -
trunk/LazFuck.lpi
r76 r78 40 40 <SyntaxOptions> 41 41 <SyntaxMode Value="Delphi"/> 42 <CStyleOperator Value="False"/> 43 <AllowLabel Value="False"/> 44 <CPPInline Value="False"/> 42 45 </SyntaxOptions> 43 46 </Parsing> … … 75 78 <SyntaxOptions> 76 79 <SyntaxMode Value="Delphi"/> 80 <CStyleOperator Value="False"/> 81 <AllowLabel Value="False"/> 82 <CPPInline Value="False"/> 77 83 </SyntaxOptions> 78 84 </Parsing> … … 112 118 <SyntaxOptions> 113 119 <SyntaxMode Value="Delphi"/> 120 <CStyleOperator Value="False"/> 121 <AllowLabel Value="False"/> 122 <CPPInline Value="False"/> 114 123 </SyntaxOptions> 115 124 </Parsing> … … 326 335 <SyntaxMode Value="Delphi"/> 327 336 <CStyleOperator Value="False"/> 337 <IncludeAssertionCode Value="True"/> 328 338 <AllowLabel Value="False"/> 329 339 <CPPInline Value="False"/> 330 340 </SyntaxOptions> 331 341 </Parsing> 342 <CodeGeneration> 343 <Checks> 344 <IOChecks Value="True"/> 345 <RangeChecks Value="True"/> 346 <OverflowChecks Value="True"/> 347 <StackChecks Value="True"/> 348 </Checks> 349 <VerifyObjMethodCallValidity Value="True"/> 350 </CodeGeneration> 332 351 <Linking> 352 <Debugging> 353 <UseHeaptrc Value="True"/> 354 </Debugging> 333 355 <Options> 334 356 <Win32> … … 341 363 <IgnoredMessages idx5024="True"/> 342 364 </CompilerMessages> 365 <CustomOptions Value="-dDEBUG"/> 343 366 </Other> 344 367 </CompilerOptions> -
trunk/LazFuck.lpr
r75 r78 13 13 UFormOutput, UFormInput, UFormMemory, UFormMessages, UFormSourceCode, 14 14 UFormTargetCode, UFormTargetOptions, UCore, Common, TemplateGenerics, 15 CoolTranslator, UFormLog, UProject, UBFTarget ;15 CoolTranslator, UFormLog, UProject, UBFTarget, SysUtils; 16 16 17 17 {$R *.res} 18 18 19 {$IFDEF DEBUG} 20 const 21 HeapTraceLog = 'heaptrclog.trc'; 22 {$ENDIF} 23 24 19 25 begin 26 {$IFDEF DEBUG} 27 // Heap trace 28 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog); 29 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog); 30 {$ENDIF} 31 20 32 Application.Title := 'LazFuck IDE'; 21 33 RequireDerivedFormResource := True; -
trunk/Target/UTargetInterpretter.pas
r72 r78 228 228 if MemoryPosition < MemorySize then Inc(MemoryPosition, FProgram[FProgramIndex].Parameter) 229 229 else raise Exception.Create(SProgramUpperLimit); 230 if MemoryPosition > MemoryMaxUsed then 231 MemoryMaxUsed := MemoryPosition; 230 232 end; 231 233 … … 253 255 OutputPosition := 1; 254 256 MemoryPosition := 0; 257 MemoryMaxUsed := 0; 255 258 //FillChar(Pointer(Memory)^, Length(Memory), 0); 256 259 for I := 0 to Length(Memory) - 1 do -
trunk/UBFTarget.pas
r70 r78 34 34 public 35 35 MemorySize: Integer; 36 MemoryMaxUsed: Integer; 36 37 CellSize: Integer; 37 38 constructor Create; override;
Note:
See TracChangeset
for help on using the changeset viewer.