https://turingmachinesimulator.com/shared/pkwncfhhoc?
The program always stops at the plus sign. Why? I previously adjusted the code so that the two numbers are added together.
Enter 110+10 into the simulator. Load, start
name: Addierer init: z0 accept: zE // Fahre nach ganz rechts auf der ersten Zahl z0,0 z0,0,> z0,1 z0,1,> z0,_ z0,_,> z0,+ z0,+,> // Suche das Ende der zweiten Zahl z0,- z1,-,< // Addiere 1 z1,0 z2,1,< z1,1 z1,0,< z1,_ zE,1,- // Fahre nach ganz links und beende z2,0 z2,0,< z2,1 z2,1,< z2,_ zE,_,> z2,+ // Falls ein '+' gefunden wird, bewege nach rechts, da es bereits verarbeitet wurde z2,+,>
I think it’s because you always hide in z0. You’re just going through one – in z1, but where does that come from? There’s no point in the input. I’m not aware of his function.
I think you just have to run over 0, 1 and + in z0 to the right, and at the first blank _ then go one to the left and switch to z1.
(Sorry, there were just some typos in there)