Display the sum, difference, product, quotient and remainder of two absolute expressions.
Syntax:
───── H ───── abs-expr1 ───── abs-expr2 ──────────────────────
Parameters:
abs-expr1
Results & Notes:
Each of the expressions is evaluated. If either does not resolve to a simple numeric value then the message:
Expression error
is displayed.
Having resolve each of the expressions then the sum, difference, product and quotient of the pair is displayed as in the following examples:
------------------------------------------------------------------------------- ##h 2 3 +0005 -ffff *0006 0000 /0000 0002 #h 10t 5 +000f -0005 *0032 0000 /0002 0000 ##h 7fff 5 +8004 -7ffa *7ffb 0002 /1999 0002 ## 5*4 2*3 +001a -000e *0078 0000 /0003 0002 ##h bmp_segsize 5 +0017 -000d *005a 0000 /0003 0003 ##h -------------------------------------------------------------------------------
Notes
Calculations are performed using 16-bit signed arithmetic.
The operation performed is shown prefixing the result.
The product is shown as a two word value, the low word followed by the high.
The division is shown as two words, the quotient followed by the remainder.
In the last example, bmp_segsize is an absolute symbol of value 0x0012 defined in map OS2KRNL.
Evaluation of complex expressions involving relocatable addresses may be done using the ? command.