Concept Flow - Saturating arithmetic instructions
Start with two numbers
Add or subtract numbers
Check if result > max limit
Set result = max
Set result = min
Output result
The instruction adds or subtracts two numbers, then checks if the result exceeds the allowed range. If it does, it sets the result to the maximum or minimum limit instead of wrapping around.
