Date: Thu, 13 Jun 1996 08:55:39 +0200 (IST) From: Eli Zaretskii To: richard DOT griffiths AT zetnet DOT co DOT uk Cc: djgpp AT delorie DOT com Subject: Re: ASM In-Reply-To: <4pmi45$932@roch.zetnet.co.uk> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 12 Jun 1996 richard DOT griffiths AT zetnet DOT co DOT uk wrote: > Would it be possible to write a procedure in pure-100% asm, compile it to > an .obj with TASM or MASM and then call the asm procedure from with in my > djgpp souce?? This should usually be the last resort. If you *really* need it and cannot do it any other way, read section 17.6 of the DJGPP FAQ list (available as v2/faq200b.zip from the same place you get DJGPP). It explains how to call a 16-bit procedure from DJGPP. > Here is one of the routines that I would like to have in the .obj: > > PutPixel(X,Y,Col,Where) asm There should be no need to make this in 16-bit asm. Use the GRX library which already has such a function. Why reinvent the wheel? GRX is available as v2tk/grx20.zip from the same place you get DJGPP. And please read the FAQ. Many questions, especially those asked by newcomers to DJGPP, has already been answered there.