Sign in or 

|
Teh1337Bix |
Latest page update: made by Teh1337Bix
, Dec 14 2008, 5:27 AM EST
(about this update
About This Update
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?
Keyword tags:
Arithmetic
dec
decrement
inc
increment
|
|||||