Ignore:
Timestamp:
Apr 24, 2019, 5:04:53 PM (6 years ago)
Author:
chronos
Message:
  • Added: New instruction Convert which can convert numbers between different widths.
Location:
branches/virtualcpu4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/virtualcpu4

    • Property svn:ignore
      •  

        old new  
        55*.res
        66heaptrclog.trc
         7*.dbg
  • branches/virtualcpu4/UInstructionWriter.pas

    r182 r183  
    4848    procedure Call(Addr: QWord);
    4949    procedure Return;
     50    procedure Convert(Reg: TRegIndex);
    5051    procedure DataPrefix8;
    5152    procedure DataPrefix16;
     
    195196end;
    196197
     198procedure TInstructionWriter.Convert(Reg: TRegIndex);
     199begin
     200  PrefixBegin;
     201  Write8(Byte(opConvert));
     202  Write8(Reg);
     203  PrefixEnd;
     204end;
     205
    197206procedure TInstructionWriter.DataPrefix8;
    198207begin
Note: See TracChangeset for help on using the changeset viewer.