Adds one number to another. ADDD adds two decimal numbers. ADDX adds two hexadecimal numbers.
Format
ADDD n m ADDX n m |
Parameter(s)
n |
First of the two numbers to be added. |
m |
Second of the two numbers to be added. |
Description
Precede negative decimal numbers with a minus sign. Hexadecimal numbers are negative in the range X’FFFFFFFFFFFF (–1) to X’800000000001 (-140,737,488,355,327).
Adding Two Decimal Numbers
This example adds 34 and 57:
>ADDD 34 57 91 |
Adding Two Hexadecimal Numbers
This example adds F and 50:
>ADDX F 50 5F |