Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char Z1, Z2, M, ST2, ST3, ST5, tim, pc = 0, xw;
- char tab_PS[]={32, 34, 32, 32, 9, 8, 16, 32, 2, 0, 34};
- char tab_PW[]={2, 1, 6, 4, 1, 7, 3, 0, 1, 7, 0};
- char tab_PA[]={0, 0, 8, 2, 0, 5, 6, 0, 0, 9, 2};
- ....
- while(1){
- ...
- Z1=(tab_PS[pc]&32)?1:0;
- Z2=(tab_PS[pc]&16)?1:0;
- M=(tab_PS[pc]&8)?1:0;
- ST2=(tab_PS[pc]&4?1:0;
- ST3=(tab_PS[pc]&2?1:0;
- ST5=(tab_PS[pc]&1?1:0;
- switch(tab_PW[pc]){
- case 0: xw=0; break;
- case 1: xw=1; break;
- case 2: xw=X1; break;
- case 3: xw=!X1; break;
- case 4: xw=X2; break;
- case 5: xw=!X2; break;
- case 6: xw= tim; break;
- case 7: xw = !tim; break;
- }
- if(xw) ++pc; else pc=tab_PA[pc];
- if(ST3) tim = 30;
- if(ST2) tim = 20;
- if(ST5) tim = 50;
- if(tim) --tim;
- L1 = Z1;
- L2 = Z2;
- L3 = M;
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement