Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!think!ames!sdcsvax!ucbvax!WHARTON.UPENN.EDU!CURLEY From: CURLEY@WHARTON.UPENN.EDU ("Curley, Robert F.") Newsgroups: comp.os.vms Subject: MACRO Puzzle Message-ID: <8706180020.AA04423@ucbvax.Berkeley.EDU> Date: Mon, 15-Jun-87 10:19:00 EDT Article-I.D.: ucbvax.8706180020.AA04423 Posted: Mon Jun 15 10:19:00 1987 Date-Received: Sun, 21-Jun-87 11:42:26 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 31 This is not new, but it came up in discussion recently and I thought that those who are interested in MACRO might be interested. Consider the following program (originally written in MACRO-11): .MACRO BLUE .IF NDF BLACK BLACK=0 .ENDC BLACK=BLACK+1 .ENDM ; BLUE RED: .WORD BLACK .END The question is: "What value does the assembler place in RED?" The interesting observation: "The value depends upon whether you run this code through the VAX MACRO or through the MACRO-11 assembler." --Bob Curley .__. ._ _.._ ..._ ___ _... .. ... _._. .._ __ _.. . .__ ...__ .... .__. __. PPPPP EEEEEE N N N N !Robert F. Curley Curley@Wharton.UPENN.edu P P E NN N NN N !Division of Medical Physics PPPPP EEEE N N N N N N !Department of Radiation Therapy P E N N N N N N !University of Pennsylvania P E N NN N NN !P.O. Box 7806 P EEEEEE N N N N !Philadelphia, PA 19101 (215)662-3083 .__. ._ _.._ ..._ ___ _... .. ... _._. .._ __ _.. . .__ ...__ .... .__. __.