I'm not really participating this tournament, but had to join for the computation puzzle!

Was hoping to get two metal outputs per instruction cycle, but I needed to add a bunch of weird instructions to integrate all the cases and that took up a bunch of instruction space. oh well.

Thanks for the puzzle, good luck to the regular participants.