www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/13/02:00:22

Date: Thu, 13 Jun 1996 08:55:39 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.960613084915.8264H-100000@is>
Mime-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019