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.

ANOP instruction►► sequence_symbol ANOP ►◄sequence_symbolis a sequence symbol.No operation is carried out by an ANOP instruction. Instead, if a branch is takento the ANOP instruction, the assembler processes the next sequential instruction.Example:MACRO&NAME MOVE &T,&FLCLC&TYPEAIF (T’&T EQ ’F’).FTYPE Statement 1&TYPE SETC ’E’ Statement 2.FTYPE ANOP Statement 3&NAME ST&TYPE 2,SAVEAREA Statement 4L&TYPE2,&FST&TYPE 2,&TL&TYPE2,SAVEAREAMENDStatement 1 determines if the type attribute of the first macro instruction operandis the letter F. If the type attribute is not the letter F, Statement 2 is the nextstatement processed by the assembler. If the type attribute is the letter F, Statement4 should be processed next. However, because there is a variable symbol (&NAME) inthe name field of Statement 4, the required sequence symbol (.FTYPE) cannot beplaced in the name field. Therefore, an ANOP instruction (Statement 3) must beplaced before Statement 4.Then, if the type attribute of the first operand is the letter F, the next statementprocessed by the assembler is the statement named by sequence symbol .FTYPE.The value of &TYPE retains its initial null character value because the SETCinstruction is not processed. Because .FTYPE names an ANOP instruction, the nextstatement processed by the assembler is Statement 4, the statement following theANOP instruction.Chapter 9. How to write conditional assembly instructions 389

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

Saved successfully!

Ooh no, something went wrong!