HLASM - BNPR = Branch on Not Plus Register

The opcode of the BNPR extended mnemonic is X'07' with mask B'1101'.

The mask is the third hex digit of the instruction, and - though this is uncommon - can be regarded as the third hex digit of the opcode as well.

Usage

  1. Perform a branch if the condition code is not 2 or B'10', meaning "plus" or "positive".
  2. Condition code 2 may occur after arithmetic operations, such as AR. Do not use after multiplication and division, since these instructions do not set the condition code.

Arguments

  1. Register holding the destination address.

Function

  1. The processor uses the PSW's two-bit condition code as an index into the 4-bit condition mask.
  2. If the selected mask-bit is one, then it branches to the address specified in the second argument. If the bit is zero, then the processor continues with the next instruction.
  3. The condition code does not change.

Special Cases

  1. If the destination address is in register 0 no branch will be taken.

Related Instructions

  1. BNHR is a synonym for the BNPR mnemonic.
  2. BNP branches to a location that is directly addressable in base-displacement form.
  3. BCR is the real instruction associated with this extended mnemonic.

Hardware

  1. All hardware supports the BNPR instruction.

Remarks

  1. The PSW's Amode setting determines how many bits are used for the destination address.

Examples

         YREGS                          * Define register names
         ...
         SR    R6,R1                    * Deduct from total
         BNPR  R14                      * Not enough: quit!
         ...

To the Opcodes Overview.
To the English Homepage for Hlasm.com.
To the General Homepage for Bixoft and Hlasm.com.

This site is a member of WebRing.
You are invited to browse the list of mainframe-loving sites.
Running Tyrannosaurus Rex Dinos are not dead. They are alive and well and living in data centers all around you. They speak in tongues and work strange magics with computers. Beware the dino! And just in case you're waiting for the final demise of these dino's: remember that dinos ruled the world for 155-million years!
Dinos and other anachronisms
[ Join Now | Ring Hub | Random | << Prev | Next >> ]
 

Below you find the logo of our sponsor and logos of the web-standards that this page adheres to.