X-Apparently-To: clax86 AT yahoo DOT com via web9602; 09 Jun 2001 21:43:40 -0700 (PDT) From: rendeg AT my-dejanews DOT com (Rennie deGraaf) Newsgroups: comp.lang.asm.x86,comp.os.msdos.djgpp Subject: Re: error linking asm module Organization: http://groups.google.com/ References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Approved: Lines: 45 Message-ID: Date: Sun, 10 Jun 2001 15:40:58 GMT NNTP-Posting-Host: 168.191.58.151 X-Complaints-To: abuse AT earthlink DOT net X-Trace: newsread1.prod.itd.earthlink.net 992187658 168.191.58.151 (Sun, 10 Jun 2001 08:40:58 PDT) NNTP-Posting-Date: Sun, 10 Jun 2001 08:40:58 PDT X-Received-Date: Sun, 10 Jun 2001 08:38:59 PDT (newsmaster1.prod.itd.earthlink.net) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com No, you nailed it. Many Thanks. I must be blind. Then again, everyone I asked before posting it missed it too. Perhaps it is handy to always have someone around who doesn't know the syntax so that when they try to decode it and something doesn't make sense, that just might be an error. I guess you fit in the "just plain smart enough" category. Thanks again, Rennie deGraaf 3rd year Computer Science, University of Calgary Jonathan Kirwan wrote in message news:... > I'm not the least bit familiar with AT&T syntax, using only MASM. I'm > not in COMD, but in CLAX. But I've a few questions. > > > On Sat, 09 Jun 2001 13:41:36 GMT, rendeg AT my-dejanews DOT com (Rennie > deGraaf) wrote: > > > and 0x01, %eax > > Is this intentional? I noticed that elsewhere, you appeared to use a > '$' before inline instruction constants (code space.) Here, there is > no '$'. > > > movb $_buffer, %cl > > Given what I can guess about the syntax, this attempts to move the > address of _buffer to CL. Of course, the address is 32 bits and CL is > only 8. Is this a possible source for the error? And also, where do > you initialize the upper 24 bits of ECX? I see you save it, but I > must have missed where you initialize it. > > > movb %al, _newkey(%ecx) > > What does this do?? And should there be a $ in front of the _newkey? > I might have guessed that ECX is a pointer, but above you only init 8 > bits of the address. So that can't be it. > > Hopefully someone better informed will help. > > Jon