Ignore:
Timestamp:
Apr 26, 2018, 12:00:02 AM (6 years ago)
Author:
chronos
Message:
  • Added: Unfinished unit for Int128 type.
Location:
branches/virtualcpu3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/virtualcpu3

    • Property svn:ignore
      •  

        old new  
        11lib
        22project1.exe
         3project1
        34*.lps
        45*.res
  • branches/virtualcpu3/UFormMain.pas

    r159 r160  
    66
    77uses
    8   Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, UMachine;
     8  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
     9  UMachine, UInt128;
    910
    1011type
     
    1314
    1415  TForm1 = class(TForm)
     16    Memo1: TMemo;
    1517    procedure FormShow(Sender: TObject);
    1618  private
    1719
    1820  public
    19 
     21    procedure TestInt128;
    2022  end;
    2123
     
    5254  Writer64: TInstWriter64;
    5355begin
    54   CPU8 := TCPU8.Create;
     56  TestInt128;
     57
     58{  CPU8 := TCPU8.Create;
    5559  Writer8 := TInstWriter8.Create;
    5660  Writer8.Machine := CPU8;
     
    6064  CPU8.Run;
    6165  CPU8.Free;
    62 
     66 }
    6367  CPU16 := TCPU16.Create;
    6468  Writer16 := TInstWriter16.Create;
     
    8993end;
    9094
     95procedure TForm1.TestInt128;
     96var
     97  A, B, C: Int128;
     98begin
     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));
     105end;
     106
    91107end.
    92108
Note: See TracChangeset for help on using the changeset viewer.