Hello eveyone, I want to write a MARIE code to perform the following program excerpt:
If (x < y + z) {
x = x – y; z=z+1;
}
else y=y-1;
Instactions given:
- Use “ORG” instruction to start your program at address 200.
-
The following labels and directives should be included at the end of your program:
X, Dec 4
Y, Dec 2
Z, Dec 5
One, Dec 1
I do not know how to use if statments in marie, all I know is how to add, subtract and multiply ( the basics)
any help would be really appreciated :)