hewlett-packard HP 9835A — 038

38 The Processor and the Operating System Test/ Alter/Branch Group Similar to the Test/Branch group, this group of instructions allows you to conditionally alter the execution sequence. In addition to tests, you can also alter the contents of the item being tested (such as set or clear a bit, or increment or decrement a register). Certain bits in the processor (Extend and Overflow) can be tested with some of these instructions, as well as registers and memory locations. Some instructions may be followed by either of the following - indicating that the bit being tested by the instruction will either be set (S) or cleared (C) after the test has been made. Instruction Description :I'::::;Z:

{location} L I] Increment the contents of the specified location and skip execution of the next word if the result is O. IY:::;Z: {location} [; I] Decrement the contents of the specified location and skip execution of the next word if the result is O. :::;r::iF) {address} [; ::::;] Skips to {address} if the A register is positive or zero (bit 15 is ::3F:i F' {address} [; C:] 0). '::;E:F' {address} [; '::;] Skips to {address} if the B register is positive or zero (bit 15 is '::;B!=' {address} [, C:] 0). '::;Fii"y1 {address} [; ,:::;] Skips to {address} if the A register is negative (bit 15 is 1).

::::;F=ir y 1 {address} [" C] '::;Bt"'1 {address} L C] '=:;Eq"y1 {address} L ':::;] Skips to {address} if the B register is negative (bit 15 is 1). ::::;L_F"i {address} [:, ::-~;] Skips to {address} if the least significant bit of the A register is O. '::L.Fi {address} [; C]