Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!bruce!cechew From: cechew@bruce.OZ (Earl Chew) Newsgroups: comp.os.minix Subject: Re: tools/menu+msc: a solution Keywords: microsoft Message-ID: <2126@bruce.OZ> Date: 7 May 90 03:09:32 GMT References: <372@cancol.oz> Organization: Monash Uni. Computer Science, Australia Lines: 23 >the kernel. The solution is to add .bss or .data at the start of the program >before the .extern of relevant symbols, otherwise all symbols are assumed to >be in .text (the mode the assembly start in by default). I see it as a problem >with menu1.s which one is lucky to get away with using asld, I am not sure how >the TC users fair here (Any comments from those people? Earl?). I have had this happen before. Usually I get a fix-up error from the linker. If you make the executable comi&d the problem goes away :-) It seems that asld is very forgiving about where you can and cannot declare such things. Masm and Tasm are not. I don't think that a sed script such as s2asm could figure out enough to fix this problem so it's up to us. In general, it is wise to put the .extern after the appropriate .bss, .data or .text. I think that Bruce is quite good at doing this --- others don't seem to be aware of the problem. Try remaking as comi&d if you suspect this problem. Earl -- Earl Chew, Dept of Computer Science, Monash University, Australia 3168 ARPA: cechew%bruce.cs.monash.oz.au@uunet.uu.net ACS : cechew@bruce.oz ----------------------------------------------------------------------