hewlett-packard HP 9835A — 067

Assembly Language Fundamentals 67 The conditional assembly is based upon a flag. At the beginning of the assembly for a module the flag is set so that object code is generated for all instructions. An IF conditional encountered during the assembly which does not have its condition set turns off the flag so that no further code is generated. Encountering an XIF statement resets the flag so that code generation can resume. For instance, if the source is- + c..;'-' I DEBUGGING SECTIG~ 5e~ ISOURCE XTF ~4~ ISOURCE ADA -1~ ust be _ +1 Ie number Then if- is executed, lines 430 through 460, 480, and 490 are assembled, but 520 through 550 are not. Line 570 is assembled.

The one XIF actually affected both conditions. This effect is more dramatically illustrated by- IASSEMBLE ~~~~lEJe is assembled! where neither A nor B is set. In this 480, 490, 520 through 550 are not assembled. But 550 The effect of the XIF, then, is as a flag for all the conditions. As a consequence, it is not possible to "nest" conditional assemblies. This effect is the same with the IFP conditional.