source: branches/virtualcpu4/virtucpu4.lpr

Last change on this file was 186, checked in by chronos, 5 years ago
  • Added: Partial implementation of compiler to Pascal source.
File size: 905 bytes
Line 
1program virtucpu4;
2
3{$mode objfpc}{$H+}
4
5uses
6 {$IFDEF UNIX}
7 cthreads, clocale,
8 {$ENDIF}
9 Interfaces, // this includes the LCL widgetset
10 SysUtils, Forms, UFormMain, UCpu, UMachine, UMemory, UFormDisassembler,
11 UFormMemory, UFormCpuState, UFormScreen, UFormConsole, UDisassembler,
12 UAssembler, UInstructionReader, UOpcode, UFormAssembler, UFormCompilerPascal,
13 UCompilerPascal
14 { you can add units after this };
15
16{$R *.res}
17
18{$if declared(UseHeapTrace)}
19const
20 HeapTraceLog = 'heaptrclog.trc';
21{$ENDIF}
22
23begin
24 {$if declared(UseHeapTrace)}
25 // Heap trace
26 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
27 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
28 {$ENDIF}
29
30 RequireDerivedFormResource:=True;
31 Application.Scaled:=True;
32 Application.Initialize;
33 Application.CreateForm(TFormMain, FormMain);
34 Application.Run;
35end.
36
Note: See TracBrowser for help on using the repository browser.