trinero.blogg.se

Human resource machine digit exploder
Human resource machine digit exploder





  1. #Human resource machine digit exploder how to
  2. #Human resource machine digit exploder code

This requires at most 8 loop iterations for the 8-bit multiply. Otherwise, shift M right 1 (divide by 2) and shift X left 1 (multiply by 2). A and M, or A>= M if you subtract M from A if set as I will be doing). Then, each iteration, you check if bit M is set in A (e.g.

human resource machine digit exploder

To multiply 2 8-bit numbers, you start with the mask in the high bit (2^7). You add another loop variable: M, which is a 1-bit mask. May as well try for this, as well, eh? I also used a shift-subtract on the TIS-100 for division, but I don't feel like trying that here.įirst, a quick description of how it works. While it wasn't hard to optimize enough for the lights by just messing with the loop ordering and ensuring the loop counter (A) is less than the addend (B), I did something different for the TIS-100 multiplication challenge: a binary shift/add multiplier, like most CPUs use, but adapted to the limitations of the TIS-100 CPU. repeated addition loop: add B to X A times.

human resource machine digit exploder

get and save parameters, skipping everything if either is 0 Then output the resulting sum.Ī sample solution (not optimal in either way also untested and may not work): Then loop by the first #'s times (skipping if either value was 0), adding the second to the result each time around the loop instead of outputting the current counter as in the previous exercise. Store the first number in a spot to use as a counter (I use the new label facility to label this A), store the second somewhere else (I label this B), and store the result in a third tile (I label this X), copying 0 (tile 9, which I label 0) to it first to initialize.

#Human resource machine digit exploder how to

The Countdown exercise, #19, shows how to use a value as a counter to control a loop. The solutions I saw online didn't make a shred of sense to me. Yogsloth: There's no way to identify what number is on a tile, so I have no idea how to use it as a counter. XGekhRjN2RbRszEkqmobSK9scdP+3SXpu9XLrZdOqdxSuaIqoOhH3ZuslY0388Vaiqbxtm9cvq/Teml6į/gkiUnGrYsmna9dO82/c+mCDfvaFy07w0AEeLR8wz7HFUYr05ZZz5g9T7T22SzvMuFp3mUWUzZU/pt4 TqlmLjmguHF5n3TLCqARDHsctlTetHs547zj/WUpboVrxQPOruYN3ricJez63Njw1ok6EW4NiiHhkxRD GqkgflRtQFFU7atGo2rmLUbVwndBYlZrpIMjN+Z6MO3TM99/ZIfJp4s7TLwvl1tJXZntHn/lX+rVy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T1gT+XzS48RTUybk3JuaXXZvĦu6ZIL0W86JSLmx/kwViW61RcVVfbRY+d1Vd4aNVfyZvWK2wcMNqnr0gOc+j2jXBJyUaay71N5+5VlK/ħsbN/HU3JLPuX9dJ/X1OJ/XAaffMlhPHShYeK6mPOdY6seXEkUUfT4Wt3HbOed2ni2Lrd1zVWAUyp/OJ Well now I will go try to find an approach that doesn't take a whopping 40 steps, lol.ĮJxLZGBg4JWIlVcQStNg5I0xC+AKcolkX10Qyd5Wxc1l08fIe3b1D/6pu/YJzzt8R8LpKFA5wyNr6eAk After storing the larger one in a sum slot and the smaller in the counter slot it then bumps the counter and begins adding the larger into itself until the counter hits zero.

human resource machine digit exploder

It works by storing the first two numbers then subtracting the first from the second to see which is smaller.

#Human resource machine digit exploder code

Needless to say I will have to try again to get the challenges complete but I thought my code was awesome or at least fun enough to share. At that point I became determined to make it work no matter how many commands but was hoping that the steps used would remain minimal which failed. My first attempt and I had an idea for adding one number while counting with the other.







Human resource machine digit exploder