Division Calculator:
This uses the principles discovered by the brilliant Jonathan Boyd for the Boyd If Then Else Counter (BITEC) to a distinctly different effect, namely, division. If we put the denominator into binary form (by methods i belive are known), but keep the numerator as an outfit quantity, we can then make one mission per bit and determine wheather it is triggered by using the binary value of the denominator to control system visibility.
Of course, this all depends on wheather BITEC works.
Read about BITEC: (url="http://"http://www.ambrosiasw.com/webboard/Forum9/HTML/004995.html")http://www.ambrosias...TML/004995.html(/url)
4 bit:
This will devide the quantity of outfit 1 by a binary number in NCB's 1-4 and store the answer in outfit 4. NCB's 11-14 just tell you which misns "succeeded" last time (so you can look at these relative to NCB's 1-4 to determine the extent of any rounding that occured.
Syst .. spob.. Visability
1 ..... 1..... b1&(o2&!b0)
2 ..... 2..... b2&(o2&b0;)
3 ..... 3..... b3&(o2&!b0)
4 ..... 4..... b4&(o2&b0;)
5 ..... 1..... !b1|(!o2 | b0)
6 ..... 2..... !b2|(!o2 | !b0)
5 ..... 3..... !b3|(!o2 | b0)
8 ..... 4..... !b4|(!o2 | !b0)
Misn
Misn ..... OnSuc .... OnFail.....Dest.
1 ........ d2 b11 ... !b11 ...... 1
2 ........ d22 b12 . !b12 ...... 2
3 ........ d24 b13 . !b13 ...... 3
4 ........ d2*8 b14 . !b14 ...... 4
Cron...... Enable ...OnEnd... OnStart
1 ........ b100 o1 .. - ..... d1 g2 g5
2 ........ b100 o5 .. - ..... d5 g1
3 ........ b100 o2 .. !b100.. S1 b0 F1 S2 !b0 F2 S3 b0 F3 S4 !b0 F4 g4
When b100 is set, o1 will be devided by the binary value in ncb's 1-4 and outputted as a quantity of outfit 4.
All crons have Continuous Iterating Cron Entry.
Crons 1 and 2 just copy the number of o1 into o2.
Enjoy.
Masamune, will this do for your SS division thing?
-Az
------------------
It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)
Stuffit is a piece of .sit.
(This message has been edited by Azratax2 (edited 01-10-2004).)