I have this program that I am trying to make stop if there is a negative number input by the user can someone explain how I could achieve this? This is on MARIE so I am having trouble doing this with such a limited selection of coding options.
start, input
store X
input
store Y
Test1, load Y
subt X
skipcond 000
jump Test2
load X
output
jump start
Test2, skipcond 800
jump XYEq
load Y
output
jump start
XYEq, load X
output
jump start
Done, halt
X, dec 0
Y, dec 0
start, input
store X
input
store Y
Test1, load Y
subt X
skipcond 000
jump Test2
load X
output
jump start
Test2, skipcond 800
jump XYEq
load Y
output
jump start
XYEq, load X
output
jump start
Done, halt
X, dec 0
Y, dec 0