Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site ihmax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!ihmax!dob From: dob@ihmax.UUCP (dan o'brien) Newsgroups: net.micro.pc,net.micro Subject: Re: Microsoft Assembler (Bug?) Message-ID: <8@ihmax.UUCP> Date: Sat, 1-Feb-86 09:41:31 EST Article-I.D.: ihmax.8 Posted: Sat Feb 1 09:41:31 1986 Date-Received: Mon, 3-Feb-86 06:31:50 EST References: <231@argon.kcl-cs.UUCP> <194@sagan.UUCP> Organization: AT&T Bell Laboratories Lines: 25 Xref: watmath net.micro.pc:6787 net.micro:13683 > >I think that the following should assemble without problems: > >PUBLIC foo > >foo PROC NEAR > > mov [si],OFFSET bar > >foo ENDP ... > > error 35: Operand must have size > > The only work-around I found was: > mov [si],Word Ptr (OFFSET bar) > which looks funny, but assembles correctly. The parentheses are > necessary, as: ... Won't this work? mov word ptr [si],OFFSET bar -- Daniel M. O'Brien (ihnp4!ihmax!dob) AT&T Bell Laboratories IH 4A-257, x 4782 Naperville-Wheaton Road Naperville, IL 60566