Ignore:
Timestamp:
Jan 4, 2018, 2:00:49 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Preparation for support for multiple memory types.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/virt simple/UCompiler.pas

    r90 r138  
    4747  Param2: string;
    4848  ParamType1: TParamType;
    49   Indirect1: Boolean;
     49  Indirect1: TMemoryType;
    5050  Value1: Integer;
    5151  ParamType2: TParamType;
    52   Indirect2: Boolean;
     52  Indirect2: TMemoryType;
    5353  Value2: Integer;
    5454  OutValue: Integer;
     
    7474    if Param1 <> '' then begin
    7575    if (Copy(Param1, 1, 1) = '[') and (Copy(Param1, Length(Param1), 1) = ']') then begin
    76       Indirect1 := True;
     76      Indirect1 := mtData;
    7777      Param1 := Trim(Copy(Param1, 2, Length(Param1) - 2));
    78     end else Indirect1 := False;
     78    end else Indirect1 := mtNone;
    7979    if Copy(Param1, 1, 1) = 'R' then begin
    8080      ParamType1 := ptRegister;
     
    103103    if Param2 <> '' then begin
    104104    if (Copy(Param2, 1, 1) = '[') and (Copy(Param2, Length(Param2), 1) = ']') then begin
    105       Indirect2 := True;
     105      Indirect2 := mtData;
    106106      Param2 := Trim(Copy(Param2, 2, Length(Param2) - 2));
    107     end else Indirect2 := False;
     107    end else Indirect2 := mtNone;
    108108    if Copy(Param2, 1, 1) = 'R' then begin
    109109      ParamType2 := ptRegister;
Note: See TracChangeset for help on using the changeset viewer.