Ignore:
Timestamp:
Oct 14, 2020, 8:04:25 PM (4 years ago)
Author:
chronos
Message:
  • Added: New LDI and STI instruction for indexed access to memory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CpuSingleSize/UDisassembler.pas

    r218 r219  
    5252            InstText := InstText + ', ' else
    5353            InstText := InstText + ' ';
     54          if InstructionInfo.Params[J] = ptNumber then begin
     55            InstText := InstText + IntToHex(Value, 8);
     56          end else
    5457          if InstructionInfo.Params[J] = ptReg then begin
    5558            InstText := InstText + 'R' + IntToStr(Value);
     
    5861            InstText := InstText + '(R' + IntToStr(Value) + ')';
    5962          end else
    60           if InstructionInfo.Params[J] = ptNumber then begin
    61             InstText := InstText + IntToHex(Value, 8);
     63          if InstructionInfo.Params[J] = ptRegIndirectIndex then begin
     64            InstText := InstText + '(R' + IntToStr(Value);
     65            Value := Memory.Read;
     66            InstBytes := InstBytes + IntToHex(Value, 2) + ' ';
     67            InstText := InstText + ' + ' + IntToStr(Value) + ')';
    6268          end;
    6369        end;
    64         InstBytes := InstBytes + DupeString(' ', 10 - Length(InstBytes));
     70        InstBytes := InstBytes + DupeString(' ', 13 - Length(InstBytes));
    6571      end;
    6672    end;
Note: See TracChangeset for help on using the changeset viewer.