Note: not all the regEx uses are actually on the breadboard, but I will add to it frequently until they all are.
------------------------------------------------------------------------------------------
NEW: decimal to binary conversion + binary adder + binary multiplier
so apparently multiplying in binary is pretty simple starmade-logic wise.
Too lazy to explain the inner working of the circuit right now, but all you need to know is this:
There are 3 display modules on the front of the control panel. Put three single digit numbers in them. there's your three digit decimal number.
Next, push the button on the ground level. This will make everything calculate. I could do it with instant pulses, but that would be more work than using delay blocks :P
The output looks like this:
[multiple of 10 to multiply number by] (100, 10, 1)
[number being multiplied]
[current value of binary adder]
[final converted number]
the converter works up until 999 d0wn to 0 so it shouldn't go out of bounds and cause an error. Please remember that this is the disgusting, super inefficient brain storming build, and it will be updated in the future.
---------------------------------------------------------------------------------------
String Parser:
Its functioning is described pretty well on the display blocks, just hit a button and it outputs stuff. you can change the three things to parse as long as you dont change the formatting.
----------------------------------------------------------------------------------------
pointer data system. ram, I guess?
Pretty straight forward and easy, after some research and brainstorming this is all I've done so far. need to add a way for new variables to be added dynamically, and also further down the line I need a way for a central module to control data flow to all the secondary ones, with a function name at the beginning of the data string, like this:
;calc;calcType;var2;var3;
that sends the three variables to the module that answers to ;calc;
the calcType variable could be any symbol normally used to claculate two numbers.
------------------------------------------------------------------------------------------
NEW: decimal to binary conversion + binary adder + binary multiplier
so apparently multiplying in binary is pretty simple starmade-logic wise.
Too lazy to explain the inner working of the circuit right now, but all you need to know is this:
There are 3 display modules on the front of the control panel. Put three single digit numbers in them. there's your three digit decimal number.
Next, push the button on the ground level. This will make everything calculate. I could do it with instant pulses, but that would be more work than using delay blocks :P
The output looks like this:
[multiple of 10 to multiply number by] (100, 10, 1)
[number being multiplied]
[current value of binary adder]
[final converted number]
the converter works up until 999 d0wn to 0 so it shouldn't go out of bounds and cause an error. Please remember that this is the disgusting, super inefficient brain storming build, and it will be updated in the future.
---------------------------------------------------------------------------------------
String Parser:
Its functioning is described pretty well on the display blocks, just hit a button and it outputs stuff. you can change the three things to parse as long as you dont change the formatting.
----------------------------------------------------------------------------------------
pointer data system. ram, I guess?
Pretty straight forward and easy, after some research and brainstorming this is all I've done so far. need to add a way for new variables to be added dynamically, and also further down the line I need a way for a central module to control data flow to all the secondary ones, with a function name at the beginning of the data string, like this:
;calc;calcType;var2;var3;
that sends the three variables to the module that answers to ;calc;
the calcType variable could be any symbol normally used to claculate two numbers.