From: Jonathan Kirwan Newsgroups: comp.lang.asm.x86,comp.os.msdos.djgpp Subject: Re: error linking asm module Approved: CLAX86 Moderators Date: Sat, 9 Jun 2001 19:45:48 +0000 (UTC) Organization: Excite AT Home - The Leader in Broadband http://home.com/faster Message-ID: Sender: clax86 AT odin DOT asgard References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-CLAX86-Policy: http://www.pacificsites.com/~ccrayne/clax86.html X-CLAX86-Faq: http://www2.dgsys.com/~raymoon/x86faqs.html X-CLAX86-Info-1: Send submissions to comp-lang-asm-x86 AT moderators DOT isc DOT org X-CLAX86-Info-2: Send technical complaints to ccrayne AT crayne DOT org X-CLAX86-Info-3: Send complaints about policy to ccrayne AT crayne DOT org X-Comment: moderators do not necessarily agree or disagree with this article. X-Newsreader: Forte Agent 1.8/32.548 X-Complaints-To: newsabuse AT supernews DOT com Lines: 31 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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