program marie

Discussion in 'Programmer's Corner' started by curioustoknow, Oct 9, 2010.

  1. curioustoknow

    Thread Starter New Member

    Oct 9, 2010
    2
    0
    how can you write this into marie:

    if X > Y then
    X = 0;
    endif;
    Y = 0;


    ==============

    Load X
    Subt Y
    Skipcond 000
    Then, Load X
    Store X
    Store Y
    Endif, Halt

    X, DEC 0
    Y, DEC 0
     
    Last edited: Oct 9, 2010
  2. bertus

    Administrator

    Apr 5, 2008
    15,649
    2,348
  3. retched

    AAC Fanatic!

    Dec 5, 2009
    5,201
    312
  4. curioustoknow

    Thread Starter New Member

    Oct 9, 2010
    2
    0
    Thank you guys for the PDF Docs. can you tell me if I wrote the program correctly?
     
  5. retched

    AAC Fanatic!

    Dec 5, 2009
    5,201
    312
    Like I said, I have no idea about MARIE..

    Do you have a compiler and debugger for MARIE?

    If so, run the program and see if it loops like you wanted.
     
Loading...