Changeset 160 for branches/virtualcpu3/UFormMain.pas
- Timestamp:
- Apr 26, 2018, 12:00:02 AM (7 years ago)
- Location:
- branches/virtualcpu3
- Files:
-
- 2 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.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
Note:
See TracChangeset
for help on using the changeset viewer.