Ignore:
Timestamp:
Apr 12, 2019, 3:23:47 PM (6 years ago)
Author:
chronos
Message:
  • Added: Subroutine execution.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/virtualcpu4/UInstructionWriter.pas

    r178 r179  
    4747    procedure Push(Reg: TRegIndex);
    4848    procedure Pop(Reg: TRegIndex);
     49    procedure Call(Addr: QWord);
     50    procedure Return;
    4951    procedure DataPrefix8;
    5052    procedure DataPrefix16;
     
    205207end;
    206208
     209procedure TInstructionWriter.Call(Addr: QWord);
     210begin
     211  PrefixBegin;
     212  Write8(Byte(opCall));
     213  WriteAddress(Addr);
     214  PrefixEnd;
     215end;
     216
     217procedure TInstructionWriter.Return;
     218begin
     219  PrefixBegin;
     220  Write8(Byte(opRet));
     221  PrefixEnd;
     222end;
     223
    207224procedure TInstructionWriter.DataPrefix8;
    208225begin
Note: See TracChangeset for help on using the changeset viewer.