Advertisement
Guest User

Stuff

a guest
Jan 3rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :DCS
  2. "555035555555555555E32355555555555032323055555555E3323333555555553232333335555555E323333323055555503333323235555555E333223233555555503233233055555555E3223355555555555E3330555555555555B3555555555555555555555555555555555555555555555555555555555555555555555555
  3. If 80>det([[20:Then:Disp "Get Doors CSE to run this:","http://dcs.cemetech.net":Return:End
  4. 3→dim(⌊SBSET
  5. If (⌊SBSET(1)≠11 and ⌊SBSET(1)≠14) or (⌊SBSET(2)≠11 and ⌊SBSET(2)≠14) or (⌊SBSET(3)≠11 and ⌊SBSET(3)≠14):Fill(14,⌊SBSET
  6. Lbl 1
  7. Menu("ACTION?","CONVERT",C,"SETINGS",SE,"CANCEL",CA
  8. Lbl SE
  9. 0→Xmin:0→Ymin:160→Xmax:120→Ymax
  10. ClrDraw
  11. BackgroundOn WHITE
  12. TextColor(BLACK
  13. Text(­1,20,15,"SUPER BASIC SETTINGS"
  14. Text(70,102,"1.COMMANDS
  15. Text(90,104,"2.PREFIXES
  16. Text(110,117,"3.KEYS
  17. TextColor(ORANGE
  18. Text(­1,140,60,"CLEAR TO EXIT
  19. "
  20. TextColor(⌊SBSET(1)
  21. Text(68,92,Ans
  22. TextColor(⌊SBSET(2)
  23. Text(88,94,Ans
  24. TextColor(⌊SBSET(3)
  25. Text(108,107,Ans
  26. 0→K
  27. While K≠45
  28. getKey→K
  29. If max(K={92,93,94:Then
  30. If K=92:Then
  31. If ⌊SBSET(1)=11:Then
  32. 14→⌊SBSET(1)
  33. Else
  34. 11→⌊SBSET(1)
  35. End
  36. TextColor(⌊SBSET(1)
  37. Text(68,92,"▫
  38. End
  39. If K=93:Then
  40. If ⌊SBSET(2)=11:Then
  41. 14→⌊SBSET(2)
  42. Else
  43. 11→⌊SBSET(2)
  44. End
  45. TextColor(⌊SBSET(2)
  46. Text(88,94,"
  47. End
  48. If K=94:Then
  49. If ⌊SBSET(3)=11:Then
  50. 14→⌊SBSET(3)
  51. Else
  52. 11→⌊SBSET(3)
  53. End
  54. TextColor(⌊SBSET(3)
  55. Text(108,107,"▫
  56. End
  57. 0→K
  58. End:End
  59. Goto 1
  60. Lbl C
  61. ClrHome
  62. Disp "Use rowSwap( for AppVars"
  63. Input "READ: ",Str1
  64. Str1→Str0
  65. 1:det(0
  66. If sub(Str9,1,1)="":Then
  67. 1→H
  68. length(Str9)-1→E
  69. sub(Str9,2,E)→Str2
  70. Else
  71. 0→H
  72. Disp "NO WRITE TITLE SPECIFIED.","WRITING TO '1CONV'.
  73. "1CONV"→Str2
  74. End
  75. Str2→Str0
  76. 1:det(0
  77. If Str9≠"..P:NT:FN":Menu(Str2+" ALREADY EXISTS","CANCEL",CA,"ADD ON",CO,"OVERWRITE",OW
  78. Lbl OW
  79. det(6
  80. Lbl CO
  81. If Str9≠"..P:NT:FN":Then
  82. 1:det(2
  83. End
  84. Str1→Str0
  85. 1:det(0
  86. If Str9="..P:NT:FN":Then
  87. Disp "COULDN'T FIND READ PROGRAM
  88. Pause
  89. Stop
  90. End
  91. If Str1=Str2:Then
  92. Disp "NAMES CAN NOT BE THE SAME!
  93. Pause
  94. Stop
  95. End
  96. startTmr→T
  97. Disp "CONVERTING...","Depending on the size of","the file, this could","take a while.
  98. Str2→Str0
  99. det(4
  100. 1→V
  101. If H=1:2→V
  102. det(3
  103. Str9→Str3
  104. Str1→Str0
  105. 0:det(0
  106. For(A,V,θ,1)
  107. Str1→Str0
  108. A:det(0
  109. If ⌊SBSET(1)=14:Then
  110. If Str9="/P":"Pause "→Str9
  111. If Str9="/I":"real(0,3,2"→Str9
  112. If Str9="/CD":"ClrDraw"→Str9
  113. If Str9="/CH":"ClrHome"→Str9
  114. End
  115. If ⌊SBSET(2)=14:Then
  116. length(Str9)→E
  117. If sub(Str9,1,1)="*":"Disp "+sub(Str9,2,E-1)→Str9
  118. End
  119. If length(Str9)>2:Then
  120. If ⌊SBSET(2)=14:Then
  121. If sub(Str9,1,1)=".":"real("+sub(Str9,2,E-1)→Str9
  122. If sub(Str9,2,1)="­":sub(Str9,1,1)+":det("+sub(Str9,3,E-2)→Str9
  123. End
  124. If ⌊SBSET(1)=14:Then
  125. If sub(Str9,1,2)="/K":"getKey"+sub(Str3,1,1)+sub(Str9,3,E-2)→Str9
  126. If sub(Str9,1,2)="/L":"Lbl "+sub(Str9,3,E-2)→Str9
  127. If sub(Str9,1,2)="/G":"Goto "+sub(Str9,3,E-2)→Str9
  128. If sub(Str9,1,2)="//":sub(Str9,3,1)+sub(Str9,4,1)+"1"+sub(Str3,1,1)+sub(Str9,3,1)→Str3
  129. End
  130. If ⌊SBSET(3)=14:Then
  131. If inString(Str9,")A"):Then
  132. length(Str9)→E
  133. inString(Str9,")A"→F
  134. sub(Str9,1,F-1)+"Ans"+sub(Str9,F+2,E-F-1)→Str9
  135. End
  136. If inString(Str9,")RS"):Then
  137. length(Str9)→E
  138. inString(Str9,")RS")→F
  139. sub(Str9,1,F-1)+"rowSwap("+sub(Str9,F+3,E-F-2)→Str9
  140. End
  141. If inString(Str9,")>"):Then
  142. length(Str9)→E
  143. inString(Str9,")>")→F
  144. sub(Str9,1,F-1)+""+sub(Str9,F+2,E-F-1)→Str9
  145. End
  146. If inString(Str9,")L"):Then
  147. length(Str9)→E
  148. inString(Str9,")L")→F
  149. sub(Str9,1,F-1)+""+sub(Str9,F+2,E-F-1)→Str9
  150. End
  151. If inString(Str9,")("):Then
  152. length(Str9)→E
  153. inString(Str9,")(")→F
  154. expr(sub(Str9,F+2,1))+1→G
  155. sub(Str9,1,F-1)+sub("Str0Str1Str2Str3Str4Str5Str6Str7Str8Str9",G,1)+sub(Str9,F+3,E-F-2)→Str9
  156. DelVar G
  157. End:End:End
  158. If Str9="real(.NULLSTR" or Str9="..NULLSTR":""→Str9
  159. Str2→Str0
  160. A:det(2
  161. End
  162. If H=1:Then
  163. 1:det(7
  164. Else
  165. θ+1:det(7
  166. End
  167. Disp "DONE!","SECONDS TAKEN:"
  168. Disp checkTmr(T
  169. Pause
  170. DelVar Str0:DelVar Str9:DelVar Str1:DelVar Str2:DelVar Str9:DelVar Str3:DelVar T
  171. Lbl CA
  172. Stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement