adplus-dvertising
frame-decoration

Question

Which of the following macros can put a macro assembler into an infinite loop ?

a.

MACRO                    M1, XIF EQ, X                    if X = 0 then....M1  X + 1ENDCIF NE, X :                   IF X ≠ 0 then......WORD X :                 address (X) is stored hereENDCENDM

b.

MACRO M2, XIF EQ, XM2 XENDCIF NE, XWORD X + 1ENDCENDM

c.

both (a) and (b)

d.

none of these

Answer: (b).MACRO M2, XIF EQ, XM2 XENDCIF NE, XWORD X + 1ENDCENDM

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following macros can put a macro assembler into an infinite loop ?

Similar Questions

Discover Related MCQs

Q. What is the value of X printed by the following program ? program COMPUTE ( input, output ); var X : integer ; procedure FIND ( X: real ) ; begin X : = sqrt ( X ) ; end ; begin X : = 2 FIND(X);
writeln(X);
end.

Q. What are x and y in the following macro definition? macro Add x, y Load y Mul x Store y end macro

Q. In which way a macro processor for assembly language can be implemented?

Q. Advantage of incorporating the macro-processor into pass 1 is that

Q. A co-processor-

Q. A processor-

Q. Macro processor is an inbuilt function of -

Q. Macro-processors are ______

Q. Nested Macro calls are expanded using the

Q. The beginning of the macro can be represented as

Q. Which of the following statements is incorrect?

Q. The time required for execution of a macro is ……… that of procedure.

Q. Inserting the statements and instructions represented by macro, directly at the place of the macroname, in the program, is known as

Q. The end of a macro can be represented by the directive

Q. A macro can be used

Q. A macro can be defined at

Q. A macro within a macro is called

Q. The process of assigning a label or macroname to the string is called

Q. If a number of instructions are repeating through the main program, then to reduce the length of the program, ……. is used.

Q. Macro processor is an inbuilt function of ?