Advertisement
NovaYoshi

Multiplication through addition

Apr 24th, 2011
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. X = a register capable of doing addition
  2. Y = a register that X can add to itself
  3.  
  4. Copy X to Y and add the sequence of registers to X for your chosen number to multiply by it:
  5. 2 - x
  6. 3 - xy
  7. 4 - xx
  8. 5 - xxy
  9. 6 - xyx
  10. 7 - xyxy
  11. 8 - xxx
  12. 9 - xxxy
  13. 10 - xxyxy
  14. 11 - xxyxyy
  15. 12 - xyxx
  16. 13 - xyxxy
  17. 14 - xyxyx
  18. 15 - xyxyxy
  19. 16 - xxxx
  20. 17 - xxxxy
  21. 18 - xxxyx
  22. 19 - xxxyxy
  23. 20 - xxyxyx
  24. 21 - xxyxyxy
  25. 22 - xxyxyyx
  26. 23 - xxyxyyxy
  27. 24 - xyxxx
  28. 25 - xyxxxy
  29. 26 - xyxxyx
  30. 27 - xyxxyxy
  31. 28 - xyxyxx
  32. 29 - xyxyxxy
  33. 30 - xyxyxyx
  34. 31 - xyxyxyxy
  35. 32 - xxxxx
  36. 33 - xxxxxy
  37. 34 - xxxxyx
  38. 35 - xxxxyxy
  39. 36 - xxxyxx
  40. 37 - xxxyxxy
  41. 38 - xxxyxyx
  42. 39 - xxxyxyxy
  43. 40 - xxyxyxx
  44. 41 - xxyxyxxy
  45. 42 - xxyxyxyx
  46. 43 - xxyxyxyxy
  47. 44 - xxyxyyxx
  48. 45 - xxyxyyxxy
  49. 46 - xxyxyyxyx
  50. 47 - xxyxyyxyxy
  51. 48 - xyxxxx
  52. 49 - xyxxxxy
  53. 50 - xyxxxyx
  54. 51 - xyxxxyxy
  55. 52 - xyxxyxx
  56. 53 - xyxxyxxy
  57. 54 - xyxxyxyx
  58. 55 - xyxxyxyxy
  59. 56 - xyxyxxx
  60. 57 - xyxyxxxy
  61. 58 - xyxyxxyx
  62. 59 - xyxyxxyxy
  63. 60 - xyxyxyxx
  64. 61 - xyxyxyxxy
  65. 62 - xyxyxyxyx
  66. 63 - xyxyxyxyxy
  67. 64 - xxxxxx
  68. 65 - xxxxxxy
  69. 66 - xxxxxyx
  70. 67 - xxxxxyxy
  71. 68 - xxxxyxx
  72. 69 - xxxxyxxy
  73. 70 - xxxxyxyx
  74. 71 - xxxxyxyxy
  75. 72 - xxxyxxx
  76. 73 - xxxyxxxy
  77. 74 - xxxyxxyx
  78. 75 - xxxyxxyxy
  79. 76 - xxxyxyxx
  80. 77 - xxxyxyxxy
  81. 78 - xxxyxyxyx
  82. 79 - xxxyxyxyxy
  83. 80 - xxyxyxxx
  84. 81 - xxyxyxxxy
  85. 82 - xxyxyxxyx
  86. 83 - xxyxyxxyxy
  87. 84 - xxyxyxyxx
  88. 85 - xxyxyxyxxy
  89. 86 - xxyxyxyxyx
  90. 87 - xxyxyxyxyxy
  91. 88 - xxyxyyxxx
  92. 89 - xxyxyyxxxy
  93. 90 - xxyxyyxxyx
  94. 91 - xxyxyyxxyxy
  95. 92 - xxyxyyxyxx
  96. 93 - xxyxyyxyxxy
  97. 94 - xxyxyyxyxyx
  98. 95 - xxyxyyxyxyxy
  99. 96 - xyxxxxx
  100. 97 - xyxxxxxy
  101. 98 - xyxxxxyx
  102. 99 - xyxxxxyxy
  103. 100 - xyxxxyxx
  104. 101 - xyxxxyxxy
  105. 102 - xyxxxyxyx
  106. 103 - xyxxxyxyxy
  107. 104 - xyxxyxxx
  108. 105 - xyxxyxxxy
  109. 106 - xyxxyxxyx
  110. 107 - xyxxyxxyxy
  111. 108 - xyxxyxyxx
  112. 109 - xyxxyxyxxy
  113. 110 - xyxxyxyxyx
  114. 111 - xyxxyxyxyxy
  115. 112 - xyxyxxxx
  116. 113 - xyxyxxxxy
  117. 114 - xyxyxxxyx
  118. 115 - xyxyxxxyxy
  119. 116 - xyxyxxyxx
  120. 117 - xyxyxxyxxy
  121. 118 - xyxyxxyxyx
  122. 119 - xyxyxxyxyxy
  123. 120 - xyxyxyxxx
  124. 121 - xyxyxyxxxy
  125. 122 - xyxyxyxxyx
  126. 123 - xyxyxyxxyxy
  127. 124 - xyxyxyxyxx
  128. 125 - xyxyxyxyxxy
  129. 126 - xyxyxyxyxyx
  130. 127 - xyxyxyxyxyxy
  131. 128 - xxxxxxx
  132. 129 - xxxxxxxy
  133. 130 - xxxxxxyx
  134. 131 - xxxxxxyxy
  135. 132 - xxxxxyxx
  136. 133 - xxxxxyxxy
  137. 134 - xxxxxyxyx
  138. 135 - xxxxxyxyxy
  139. 136 - xxxxyxxx
  140. 137 - xxxxyxxxy
  141. 138 - xxxxyxxyx
  142. 139 - xxxxyxxyxy
  143. 140 - xxxxyxyxx
  144. 141 - xxxxyxyxxy
  145. 142 - xxxxyxyxyx
  146. 143 - xxxxyxyxyxy
  147. 144 - xxxyxxxx
  148. 145 - xxxyxxxxy
  149. 146 - xxxyxxxyx
  150. 147 - xxxyxxxyxy
  151. 148 - xxxyxxyxx
  152. 149 - xxxyxxyxxy
  153. 150 - xxxyxxyxyx
  154. 151 - xxxyxxyxyxy
  155. 152 - xxxyxyxxx
  156. 153 - xxxyxyxxxy
  157. 154 - xxxyxyxxyx
  158. 155 - xxxyxyxxyxy
  159. 156 - xxxyxyxyxx
  160. 157 - xxxyxyxyxxy
  161. 158 - xxxyxyxyxyx
  162. 159 - xxxyxyxyxyxy
  163. 160 - xxyxyxxxx
  164. 161 - xxyxyxxxxy
  165. 162 - xxyxyxxxyx
  166. 163 - xxyxyxxxyxy
  167. 164 - xxyxyxxyxx
  168. 165 - xxyxyxxyxxy
  169. 166 - xxyxyxxyxyx
  170. 167 - xxyxyxxyxyxy
  171. 168 - xxyxyxyxxx
  172. 169 - xxyxyxyxxxy
  173. 170 - xxyxyxyxxyx
  174. 171 - xxyxyxyxxyxy
  175. 172 - xxyxyxyxyxx
  176. 173 - xxyxyxyxyxxy
  177. 174 - xxyxyxyxyxyx
  178. 175 - xxyxyxyxyxyxy
  179. 176 - xxyxyyxxxx
  180. 177 - xxyxyyxxxxy
  181. 178 - xxyxyyxxxyx
  182. 179 - xxyxyyxxxyxy
  183. 180 - xxyxyyxxyxx
  184. 181 - xxyxyyxxyxxy
  185. 182 - xxyxyyxxyxyx
  186. 183 - xxyxyyxxyxyxy
  187. 184 - xxyxyyxyxxx
  188. 185 - xxyxyyxyxxxy
  189. 186 - xxyxyyxyxxyx
  190. 187 - xxyxyyxyxxyxy
  191. 188 - xxyxyyxyxyxx
  192. 189 - xxyxyyxyxyxxy
  193. 190 - xxyxyyxyxyxyx
  194. 191 - xxyxyyxyxyxyxy
  195. 192 - xyxxxxxx
  196. 193 - xyxxxxxxy
  197. 194 - xyxxxxxyx
  198. 195 - xyxxxxxyxy
  199. 196 - xyxxxxyxx
  200. 197 - xyxxxxyxxy
  201. 198 - xyxxxxyxyx
  202. 199 - xyxxxxyxyxy
  203. 200 - xyxxxyxxx
  204. 201 - xyxxxyxxxy
  205. 202 - xyxxxyxxyx
  206. 203 - xyxxxyxxyxy
  207. 204 - xyxxxyxyxx
  208. 205 - xyxxxyxyxxy
  209. 206 - xyxxxyxyxyx
  210. 207 - xyxxxyxyxyxy
  211. 208 - xyxxyxxxx
  212. 209 - xyxxyxxxxy
  213. 210 - xyxxyxxxyx
  214. 211 - xyxxyxxxyxy
  215. 212 - xyxxyxxyxx
  216. 213 - xyxxyxxyxxy
  217. 214 - xyxxyxxyxyx
  218. 215 - xyxxyxxyxyxy
  219. 216 - xyxxyxyxxx
  220. 217 - xyxxyxyxxxy
  221. 218 - xyxxyxyxxyx
  222. 219 - xyxxyxyxxyxy
  223. 220 - xyxxyxyxyxx
  224. 221 - xyxxyxyxyxxy
  225. 222 - xyxxyxyxyxyx
  226. 223 - xyxxyxyxyxyxy
  227. 224 - xyxyxxxxx
  228. 225 - xyxyxxxxxy
  229. 226 - xyxyxxxxyx
  230. 227 - xyxyxxxxyxy
  231. 228 - xyxyxxxyxx
  232. 229 - xyxyxxxyxxy
  233. 230 - xyxyxxxyxyx
  234. 231 - xyxyxxxyxyxy
  235. 232 - xyxyxxyxxx
  236. 233 - xyxyxxyxxxy
  237. 234 - xyxyxxyxxyx
  238. 235 - xyxyxxyxxyxy
  239. 236 - xyxyxxyxyxx
  240. 237 - xyxyxxyxyxxy
  241. 238 - xyxyxxyxyxyx
  242. 239 - xyxyxxyxyxyxy
  243. 240 - xyxyxyxxxx
  244. 241 - xyxyxyxxxxy
  245. 242 - xyxyxyxxxyx
  246. 243 - xyxyxyxxxyxy
  247. 244 - xyxyxyxxyxx
  248. 245 - xyxyxyxxyxxy
  249. 246 - xyxyxyxxyxyx
  250. 247 - xyxyxyxxyxyxy
  251. 248 - xyxyxyxyxxx
  252. 249 - xyxyxyxyxxxy
  253. 250 - xyxyxyxyxxyx
  254. 251 - xyxyxyxyxxyxy
  255. 252 - xyxyxyxyxyxx
  256. 253 - xyxyxyxyxyxxy
  257. 254 - xyxyxyxyxyxyx
  258. 255 - xyxyxyxyxyxyxy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement