Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. char Z1, Z2, M, ST2, ST3, ST5, tim, pc = 0, xw;
  2.  
  3. char tab_PS[]={32, 34, 32, 32, 9, 8, 16, 32, 2, 0, 34};
  4. char tab_PW[]={2, 1, 6, 4, 1, 7, 3, 0, 1, 7, 0};
  5. char tab_PA[]={0, 0, 8, 2, 0, 5, 6, 0, 0, 9, 2};
  6.  
  7. ....
  8.  
  9. while(1){
  10. ...
  11.  
  12. Z1=(tab_PS[pc]&32)?1:0;
  13. Z2=(tab_PS[pc]&16)?1:0;
  14. M=(tab_PS[pc]&8)?1:0;
  15. ST2=(tab_PS[pc]&4?1:0;
  16. ST3=(tab_PS[pc]&2?1:0;
  17. ST5=(tab_PS[pc]&1?1:0;
  18.  
  19. switch(tab_PW[pc]){
  20. case 0: xw=0; break;
  21. case 1: xw=1; break;
  22. case 2: xw=X1; break;
  23. case 3: xw=!X1; break;
  24. case 4: xw=X2; break;
  25. case 5: xw=!X2; break;
  26. case 6: xw= tim; break;
  27. case 7: xw = !tim; break;
  28. }
  29.  
  30. if(xw) ++pc; else pc=tab_PA[pc];
  31. if(ST3) tim = 30;
  32. if(ST2) tim = 20;
  33. if(ST5) tim = 50;
  34.  
  35. if(tim) --tim;
  36.  
  37. L1 = Z1;
  38. L2 = Z2;
  39. L3 = M;
  40.  
  41. ...
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement