: Sum:= 0;
: for X := 1 to 10 do
: Sum:= Sum + X;
: I am trying to write this code in MARIE but i have no idea where to
: start. Can someone walk me through this process step by step?
I don't exactly know MARIE, but:
mov [Sum], 55
But I guess that's too lame :P
Anyway, the first line should be easy. For the second you need to know how to create a basic loop structure.
In this case, you could also use a "10 downto 1" loop, which is more 1:1 with x86 assembly code (and so probably also MARIE).
Then, what happens in the loop is simple ADDition.
The way I see it... Well, it's all pretty blurry