Advertisement
medvm22

aristov

May 4th, 2023
744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .SECTION/DM vars;
  2.  
  3. .var/circ signal[80] =
  4. 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  5. 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  6. 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  7. 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;
  8.  
  9. .SECTION/PM varsp;
  10.  
  11. .var/circ repr[80] = "g_re.txt";
  12. .var/circ impr[80] = "g_im.txt";
  13.  
  14. .SECTION/PM program;
  15.  
  16. jump start; rti; rti; rti;
  17. rti; rti; rti; rti;
  18. rti; rti; rti; rti;
  19. rti; rti; rti; rti;
  20. rti; rti; rti; rti;
  21. rti; rti; rti; rti;
  22. rti; rti; rti; rti;
  23. rti; rti; rti; rti;
  24. rti; rti; rti; rti;
  25. rti; rti; rti; rti;
  26. jump filter; rti; rti; rti;
  27. rti; rti; rti; rti;
  28.  
  29. start: ar = 4;
  30.     ax0=0x0800;
  31. dm(0x3ffb) = ar;//TSCALE
  32. ar = 999;
  33. dm(0x3ffc) = ar;//TCOUNT
  34. dm(0x3ffd) = ar;//TPERIOD
  35.  
  36. i4 = repr; l4 = length(repr); m4 = 1; m5 = 0;
  37. i0 = signal; l0 = length(signal); m0 = 0; m1 = 1;
  38. my0 = pm(i4,m4);
  39.  
  40. i5 = impr; l5 = length(impr);
  41. my1 = pm(i5,m4);
  42.  
  43. ay1 = 0x00ff;
  44. sr1 = 0;
  45.  
  46. ifc = 0x00ff;
  47. nop;
  48.  
  49. ena timer;
  50. imask = b#0000000001;
  51. nop;
  52. zacycl: jump zacycl;
  53.  
  54. filter: mx0 = io(0);
  55. dm(i0,m1) = mx0, mr = 0;
  56. cntr = 78;
  57. do filt until ce;
  58.     mr = mr + mx0 * my0 (ss), mx0 = dm(i0,m1), my0 = pm(i4,m4);
  59. filt:
  60.     mr = mr - mx0 * my1 (ss), my1 = pm(i5,m4);
  61. mr = mr + mx0 * my0 (ss), mx0 = dm(i0,m0), my0 = pm(i4,m4);
  62. mr = mr - mx0 * my1 (ss), my1 = pm(i5,m4);
  63. mr = mr + mx0 * my0 (ss), my0 = pm(i4,m4);
  64. mr = mr - mx0 * my1 (ss), my1 = pm(i5,m4);
  65. mr = mr(rnd);
  66. if mv sat mr;
  67. io(1) = mr1;
  68. rti;
  69.  
Tags: loh aristov
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement