Ignore:
Timestamp:
Apr 13, 2019, 1:32:32 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Allow to use multiple prefix instructions in row.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/virtualcpu4/UInstructionReader.pas

    r181 r182  
    1414  TInstructionReader = class
    1515  protected
    16     DataSizeLast: TBitWidth;
    17     DataSizePrefix: TBitWidth;
    18     AddrSizeLast: TBitWidth;
    19     AddrSizePrefix: TBitWidth;
    2016  public
    2117    Cpu: TCpu;
    2218    IP: Integer;
     19    Prefix: Boolean;
    2320    DataSize: TBitWidth;
     21    DataSizeBase: TBitWidth;
    2422    AddrSize: TBitWidth;
     23    AddrSizeBase: TBitWidth;
    2524    procedure Init;
    2625    function Read8: Byte; inline;
     
    3938procedure TInstructionReader.Init;
    4039begin
    41   DataSize := Cpu.DataSize;
    42   AddrSize := Cpu.AddrSize;
     40  DataSizeBase := Cpu.DataSizeBase;
     41  DataSize := DataSizeBase;
     42  AddrSizeBase := Cpu.AddrSizeBase;
     43  AddrSize := AddrSizeBase;
    4344end;
    4445
Note: See TracChangeset for help on using the changeset viewer.