program marie

Thread Starter

curioustoknow

Joined Oct 9, 2010
2
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:

retched

Joined Dec 5, 2009
5,207
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.
 
Top