Ignore:
Timestamp:
Apr 13, 2019, 1:32:32 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Allow to use multiple prefix instructions in row.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/virtualcpu4/Forms/UFormMain.pas

    r181 r182  
    159159  LabelPrintLoop := IP;
    160160    DataPrefix8; LoadMem(R3, R1);
    161     DataPrefix8; Output(0, R3);
     161    AddrPrefix8; DataPrefix8; Output(0, R3);
    162162    Increment(R1);
    163163    Decrement(R2);
     
    199199
    200200    // Read keyboard and print to console
    201     Loadi(R1, 100);
     201    Loadi(R1, 0);
    202202  LabelConsole := IP;
    203203    Increment(R1);
    204     Loadi(R2, $100);
     204    Loadi(R2, $ff);
    205205    DataPrefix8; StoreMem(R2, R1);
    206     DataPrefix8; Input(R2, 0);
    207     DataPrefix8; Output(0, R2);
     206    AddrPrefix8; DataPrefix8; Input(R2, 0);
     207    AddrPrefix8; DataPrefix8; Output(0, R2);
    208208    Jump(LabelConsole);
    209209
Note: See TracChangeset for help on using the changeset viewer.