11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

AIF instructionAIFB—synonym of the AIF instructionFor compatibility with some earlier assemblers, High Level Assembler supports theAIFB symbolic operation code as a synonym of the AIF instruction. However, youshould not use the AIFB instruction in new applications as support for it might beremoved in the future.AGOinstructionThe AGO instruction branches unconditionally. You can thus alter the sequence inwhich your assembler language statements are processed. This provides you withfinal exits from conditional assembly loops.►►sequence_symbolAGO sequence_symbol ►◄sequence_symbolis a sequence symbol.The statement named by the sequence symbol in the operand field is the nextstatement processed by the assembler.The statement identified by a sequence symbol referred to in the AGO instructioncan appear before or after the AGO instruction. However, the statement mustappear within the local scope of the sequence symbol. Thus, the statementidentified by the sequence symbol must appear:v In open code, if the corresponding AGO instruction appears in open codev In the same macro definition in which the corresponding AGO instructionappears.Example:MACRO&NAME MOVE &T,&FAIF (T’&T EQ ’F’).FIRST Statement 1AGO .END Statement 2.FIRST AIF (T’&T NE T’&F).END Statement 3&NAME ST 2,SAVEAREAL2,&FST2,&TL2,SAVEAREA.END MEND Statement 4Statement 1 determines if the type attribute of the first macro instruction operandis the letter F. If the type attribute is the letter F, Statement 3 is the next statementprocessed by the assembler. If the type attribute is not the letter F, Statement 2 isthe next statement processed by the assembler.Statement 2 indicates to the assembler that the next statement to be processed isStatement 4 (the statement named by sequence symbol .END).Computed AGO instructionThe computed AGO instruction makes branches according to the value of anarithmetic expression specified in the operand.386 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!