0

I keep running into this issue in https://marie.js.org where it wouldn't assemble and give the error. The prompt is to write a MARIE program that finds the largest value in an integer array. The user should input 5 values into an array. Output will show the largest value. And I must use an array and LoadI combined with Jump statements to complete this program.

SyntaxError:L2 - Unknown operator storea.

here is the code:


LoadI 0 StoreA ARRAY LoadI 1 StoreA INDEX Start: LoadA INDEX SubtractI ARRAYSIZE Skipcond 800 Jump End

LoadA ARRAY AddI INDEX LoadI 0 StoreA MAX

LoadA ARRAY AddI INDEX LoadA MAX Skipcond 400 Jump Continue

LoadA ARRAY AddI INDEX LoadA MAX StoreA MAX Jump Continue

Continue: LoadA INDEX AddI ONE StoreA INDEX Jump Start

End: LoadA MAX Output Halt


How should this be formatted on the simulator?

  • If you look at the examples on that site you can see it uses plain `Store` and `Load` and not `StoreA`/`LoadA`. – Jester Nov 09 '22 at 14:40

0 Answers0