Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW Asm Bitwise Operators? Message-ID: <9996@goofy.Apple.COM> Date: 30 Aug 90 22:16:52 GMT References: <33404@cup.portal.com> Distribution: usa Organization: Apple Computer Inc., Cupertino, CA Lines: 28 In article <33404@cup.portal.com> Bits_of_Magic@cup.portal.com writes: >I am using a Mac IIfx for embedded systems development, and while switching >some code from another assembler, I realized that MPW Assember appears to >have no bitwise operators for use in expressions. Am I missing something? >I've got a bunch of macros along the lines of: > > move.w #((input & $3FFF) | $4000),D0 > >where & is bitwise AND and | is bitwise OR. Changing them all so that the >bit manipulation is actually done in code would really be a pain. Anybody >want to tell me I'm unable to find a simple reference in the MPW manuals or >suggest some other reasonable alternative? Macros in MPW assembler use the "&" character along with a label to denote local labels and input/output parameters. Just use "AND" instead. steve -- ____________________________________________________________________ Steve Christensen Internet: stevec@goofy.apple.com Apple Computer, Inc. AppleLink: STEVEC 20525 Mariani Ave, MS 81-CS CompuServe: 76174,1712 Cupertino, CA 95014 "You just contradicted me." "No I didn't." ____________________________________________________________________