|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide add.pro
add |
This procedure adds the data from two data containers stored in the global buffers 0-15. If no parameters are passed, then the data from global buffers 0 and 1 are added and the result is stored in global buffer 0. If two parameters are supplied, those two global buffers are added together and the result of the addition is stored in global buffer 0. If three parameters are supplied, then the first two are global buffers that are added together and the third is the global buffer where the result should be stored.
out = in1 + in2
getrec,1 copy,0,1 getrec,2 add ; The two records are added and the result is ; stored in buffer 0 getrec,1 copy,0,10 getrec,2 copy,0,11 add,10,11,12 ; The data from buffers 10 and 11 are added and ; the result is stored in buffer 12
Parameters | |
in1 |
Input buffer number, first argument. |
in2 |
Input buffer number, second argument. |
out |
Output buffer number. |