Ignore:
Timestamp:
Apr 23, 2018, 2:13:10 PM (7 years ago)
Author:
chronos
Message:
  • Added: More opcodes with handlers.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/virtualcpu2/UFormMain.pas

    r153 r154  
    9595  Counter = 3;
    9696  Temp = 4;
     97  Jump = 5;
    9798var
    9899  Writer: TInstructionWriter;
     
    103104    Machine := Self.Machine;
    104105    AddGetDataSize(Temp);
    105     AddCopyConst(Temp, 1);
     106    AddCopyConst8(Temp, 1);
    106107
    107108    AddCopyConst(Counter, 8);
     
    116117    AddDec(Counter);
    117118    AddTestNotZero(Counter);
    118     AddJumpRelCond8(LoopAddr - Addr);
     119    AddCopyConst8(Jump, LoopAddr - (Addr + 3));
     120    AddJumpRelCond8(Jump);
    119121    AddHalt;
    120122  end;
Note: See TracChangeset for help on using the changeset viewer.