Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!apple!sun-barr!newstop!sun!quintus!mark From: mark@quintus.UUCP (Mark Spotswood) Newsgroups: comp.sys.mips Subject: Mips assembler question Message-ID: <1380@quintus.UUCP> Date: 5 Jun 90 20:16:36 GMT Reply-To: mark@quintus.UUCP () Organization: Quintus Computer Systems, Inc. Lines: 27 I have a question about memory initialization in Mips assember. I would like to initialize a memory location to contain a value which is the difference between the addresses of two other labels, something like this: a: .word b-c where b and c are two other labels. If I use the above syntax, the Mips assembler will signal an error saying that the symbol 'c' must be an absolute value. The mips assembler will allow things like: a: .word b or a: .word b-2 If the assembler can figure out what b and b-2 will be, why can't it figure out what b-c will be? Is there a way to do what I want in Mips assember? -mark (mark@quintus.uucp)