Changeset 160 for branches/virtualcpu3
- Timestamp:
- Apr 26, 2018, 12:00:02 AM (7 years ago)
- Location:
- branches/virtualcpu3
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/virtualcpu3
- Property svn:ignore
-
old new 1 1 lib 2 2 project1.exe 3 project1 3 4 *.lps 4 5 *.res
-
- Property svn:ignore
-
branches/virtualcpu3/UFormMain.lfm
r155 r160 1 1 object Form1: TForm1 2 Left = 3253 Height = 3004 Top = 805 Width = 4002 Left = 487 3 Height = 783 4 Top = 208 5 Width = 1028 6 6 Caption = 'Form1' 7 DesignTimePPI = 120 7 ClientHeight = 783 8 ClientWidth = 1028 8 9 OnShow = FormShow 9 LCLVersion = '1.8.2.0' 10 LCLVersion = '1.8.0.4' 11 object Memo1: TMemo 12 Left = 48 13 Height = 686 14 Top = 32 15 Width = 902 16 TabOrder = 0 17 end 10 18 end -
branches/virtualcpu3/UFormMain.pas
r159 r160 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, UMachine; 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 UMachine, UInt128; 9 10 10 11 type … … 13 14 14 15 TForm1 = class(TForm) 16 Memo1: TMemo; 15 17 procedure FormShow(Sender: TObject); 16 18 private 17 19 18 20 public 19 21 procedure TestInt128; 20 22 end; 21 23 … … 52 54 Writer64: TInstWriter64; 53 55 begin 54 CPU8 := TCPU8.Create; 56 TestInt128; 57 58 { CPU8 := TCPU8.Create; 55 59 Writer8 := TInstWriter8.Create; 56 60 Writer8.Machine := CPU8; … … 60 64 CPU8.Run; 61 65 CPU8.Free; 62 66 } 63 67 CPU16 := TCPU16.Create; 64 68 Writer16 := TInstWriter16.Create; … … 89 93 end; 90 94 95 procedure TForm1.TestInt128; 96 var 97 A, B, C: Int128; 98 begin 99 A := 2; 100 B := 3; 101 C := A + B; 102 Memo1.Lines.Add(IntToStr(A) + ' + ' + IntToStr(B) + ' = ' + IntToStr(C)); 103 C := A * B; 104 Memo1.Lines.Add(IntToStr(A) + ' * ' + IntToStr(B) + ' = ' + IntToStr(C)); 105 end; 106 91 107 end. 92 108 -
branches/virtualcpu3/UMachine.pas
r159 r160 32 32 opTstZ, opTstNZ, opTstC, opTstNC, opLDMD, opSTMD, opLdir, opLddr, 33 33 opBitSet, opBitRes, opBitGet, opBitPut, 34 opPrefix8, opPrefix16, opPrefix32, opPrefix64 );34 opPrefix8, opPrefix16, opPrefix32, opPrefix64, opPrefix128); 35 35 36 36 TOpcodeHandler = procedure of object; … … 348 348 begin 349 349 SetLength(Registers, 32); 350 SetLength(Memory, 100 0);350 SetLength(Memory, 100); 351 351 InitOpcodes; 352 352 end; -
branches/virtualcpu3/project1.lpi
r158 r160 28 28 </Item1> 29 29 </RequiredPackages> 30 <Units Count=" 3">30 <Units Count="4"> 31 31 <Unit0> 32 32 <Filename Value="project1.lpr"/> … … 44 44 <IsPartOfProject Value="True"/> 45 45 </Unit2> 46 <Unit3> 47 <Filename Value="UInt128.pas"/> 48 <IsPartOfProject Value="True"/> 49 </Unit3> 46 50 </Units> 47 51 </ProjectOptions> … … 56 60 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/> 57 61 </SearchPaths> 62 <Parsing> 63 <SyntaxOptions> 64 <IncludeAssertionCode Value="True"/> 65 </SyntaxOptions> 66 </Parsing> 67 <CodeGeneration> 68 <Checks> 69 <IOChecks Value="True"/> 70 <RangeChecks Value="True"/> 71 <OverflowChecks Value="True"/> 72 <StackChecks Value="True"/> 73 </Checks> 74 <VerifyObjMethodCallValidity Value="True"/> 75 </CodeGeneration> 58 76 <Linking> 59 77 <Options> -
branches/virtualcpu3/project1.lpr
r155 r160 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, UFormMain, UMachine 10 Forms, UFormMain, UMachine, UInt128 11 11 { you can add units after this }; 12 12
Note:
See TracChangeset
for help on using the changeset viewer.