ArithmeticThis is a featured page

Post your ARITHMETIC chips below.
They'd better not be some crap like A = B + 2. I mean WHOA!! I totally couldn't have done that in 2 seconds using normal gates.
There is some of the sytax for arithmetic Egates in here.-


Teh1337Bix
Teh1337Bix
Latest page update: made by Teh1337Bix , Dec 14 2008, 5:27 AM EST (about this update About This Update Teh1337Bix Edited by Teh1337Bix

1 word added

view changes

- complete history)
Keyword tags: Arithmetic
More Info: links to this page
Started By Thread Subject Replies Last Post
IEF015 Advanced Increment/Decrement Chip 3 Jun 1 2008, 4:43 AM EDT by MagnetoHydroDynamics
Thread started: Apr 17 2008, 4:02 PM EDT  Watch
Name: Advanced Increment/Decrement Gate
Author: IEF015
Edited Chip: Increment/Decrement
Description: Increment/Decrement Gate with reset and more features.
Example Uses:

CODE:

N@Adv. Inc/Dec Chip v1
I@A Inc Dec Reset ResetTo Max Min
O@Value
Value += Inc * A
Value += Dec * -A
Reset -> Value = ResetTo;
Value > Max -> Value = Max;
Value < Min -> Value = Min;
ResetTo ? ResetTo : 0

Code explaination:

Line 1: "Value" equals "A" added when "Inc" is on
Line 2: "Value" equals "A" subtracted when "Dec" is on
Line 3: When "Reset" is on, "Value" equals "ResetTo"
Line 4: When "Value" is greater than "Max", then "Value" equals "Max"
Line 5: When "Value" is less than "Min", then "Value" equals "Min"
Line 6: When ResetTo has no input, then ResetTo will default to 0
0  out of 1 found this valuable. Do you?    
Show Last Reply
Showing 1 of 1 threads for this page

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)