Last change
on this file was 186, checked in by chronos, 6 years ago |
- Added: Partial implementation of compiler to Pascal source.
|
File size:
905 bytes
|
Line | |
---|
1 | program virtucpu4;
|
---|
2 |
|
---|
3 | {$mode objfpc}{$H+}
|
---|
4 |
|
---|
5 | uses
|
---|
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)}
|
---|
19 | const
|
---|
20 | HeapTraceLog = 'heaptrclog.trc';
|
---|
21 | {$ENDIF}
|
---|
22 |
|
---|
23 | begin
|
---|
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;
|
---|
35 | end.
|
---|
36 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.