hm hier ist es nicht so
http://www.wiremod.com/forum/cpu-tut...-foxy-cpu.html
Ich probier es aber mal aus.
edit:
Habe es jetzt mit und ohne probiert geht aber auch nicht.
Code hat auch gefehlt.
Code:
Setup:
alloc Hydvir,20;
alloc Hydreal,0;
alloc Button, 0;
alloc Y,0;
mov ecx,0;
Code;
Start:
in #Button, 0;
cmp #Button, 1;
je weiter;
jmp Start;
weiter:
fahren:
out 0, #Hydvir;
Schleife:
in #Hydreal, 1;
cmp #Hydreal, #Hydvir;
je positoniert;
jmp Schleife;
positoniert:
add #Hydvir, 5;
out 1, #Y;
add #Y,1;
add ecx,1;
cmp ecx, 10;
je Ende;
jmp fahren;
Ende:
out 0, 0;
jmp Setup;