hewlett-packard HP 9835A — 035

The Processor and the Operating System 35 Integer Math Group This group of instructions allows you to perform fundamental arithmetic operations on the contents of the arithmetic accumulators (the A and B registers). Instruction Description the A register, leaving the result in A. If a carry occurs, the Adds the contents of the specified location to the contents of Extend flag is set in the processor. If an overflow occurs (a carry from bits 14 or 15, but not both), the Overflow flag is set in the processor. r:rC:iI:::: {location} ['i :1] Adds the contents of the specified location to the contents of the B register, leaving the result in B.

If a carry occurs, the carry from bits 14 or 15, but not both), the Overflow flag is set Extend flag is set in the processor. If an overflow occurs (a in the processor. Performs a two's complement of the A register (Le., one's complement, incremented by 1). If a carry occurs, the Extend flag in the processor is set. If an overflow occurs (.a carry from bits 14 or 15, but not both), the Overflow flag in the proces- sor is set. Performs a two's complement of the B register (Le., one's flag in the processor is set. If an overflow occurs (a carry from complement, incremented by 1). If a carry occurs, the Extend bits 14 or 15, but not both), the Overflow flag in the proces- sor is set.

Binary multiply. Uses Booth's Algorithm. The values of the A and B registers are multiplied together with the product placed into A and B. The A register contains the least significant bits and the B register contains the most significant bits and the sign. (An anomaly in the processor results in an improper result whenever A or B equals - 32 768.)