welcome to the forum.
Do you have the manual for the S6?
I still have mine in the attic, saw it last week.
its been many years since I did an s6.
if I am not mistaken, your code could also be written as this.
Ld 0
LD 1
Or 2
And Ld
out xx
please be aware that there are variations in the firmware for the s6 and you need to be familiar with both types of programming.
in regards to your question.
Ld 0
And 1
Ld 2
Or LD
out xx
try both statemants out.
regards,
james