Ignore:
Timestamp:
Oct 20, 2020, 1:10:09 AM (4 years ago)
Author:
chronos
Message:
  • Added: Devices form with tree view of connected devices. Device control form can be opened by double click.
  • Modifid: IN/OUT instructions now use also device group index to directly specify which device should be read/written.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CpuSingleSize/Forms/UFormScreen.pas

    r216 r220  
    1212  { TFormScreen }
    1313
    14   TFormScreen = class(TForm)
     14  TFormScreen = class(TFormDevice)
    1515    PaintBox1: TPaintBox;
    1616    Timer1: TTimer;
     
    2121  private
    2222    TempBitmap: TBitmap;
     23  protected
     24    function GetDevice: TDevice; override;
     25    procedure SetDevice(AValue: TDevice); override;
    2326  public
    2427    Screen: TScreen;
     
    4649      P := TempBitmap.ScanLine[Y];
    4750      for X := 0 to Screen.Size.X - 1 do begin
    48         P^ := Screen.Data[Y * Screen.Size.Y + X] * $010101;
     51        P^ := Screen.VideoMem[Y * Screen.Size.Y + X] * $010101;
    4952        Inc(P);
    5053      end;
     
    5356    PaintBox1.Refresh;
    5457  end;
     58end;
     59
     60function TFormScreen.GetDevice: TDevice;
     61begin
     62  Result := Screen;
     63end;
     64
     65procedure TFormScreen.SetDevice(AValue: TDevice);
     66begin
     67  if AValue is TScreen then
     68    Screen := TScreen(AValue);
    5569end;
    5670
Note: See TracChangeset for help on using the changeset viewer.