Ignore:
Timestamp:
Nov 6, 2025, 10:35:31 PM (35 hours ago)
Author:
chronos
Message:
  • Added: More instructions to test2 project.
Location:
branches/test2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/test2

    • Property svn:ignore set to
      lib
      Project1
      Project1.res
      Project1.lps
  • branches/test2/FormMain.pas

    r13 r14  
    4242
    4343procedure TForm1.FormShow(Sender: TObject);
     44const
     45  Value0 = 0;
     46  Value1 = 0;
     47  Port0 = 0;
    4448begin
    4549  with Cpu do begin
    4650    OnOutput := OutputExecute;
    47     AddInstruction(opSet, 0, 10);
    48     AddInstruction(opOutput, 0, 0);
    49     AddInstruction(opIncrement, 0, 0);
    50     AddInstruction(opOutput, 0, 0);
    51     AddInstruction(opSet, 1, 5);
    52     AddInstruction(opAdd, 0, 1);
    53     AddInstruction(opOutput, 0, 0);
    54     AddInstruction(opTerminate, 0, 0);
     51    AddInstruction(opSet, Value0, 10);
     52    AddInstruction(opOutput, Port0, Value0);
     53    AddInstruction(opIncrement, Value0);
     54    AddInstruction(opOutput, Port0, Value0);
     55    AddInstruction(opSet, Value1, 5);
     56    AddInstruction(opAdd, Value0, Value1);
     57    AddInstruction(opOutput, Port0, Value0);
     58    AddInstruction(opTerminate);
    5559    SetLength(Memory, 10000);
    5660    Run;
Note: See TracChangeset for help on using the changeset viewer.