From: Leath Muller Message-Id: <199606132329.JAA00967@gbrmpa.gov.au> Subject: Re: ASM To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) Date: Fri, 14 Jun 1996 09:29:37 +1000 (EST) Cc: djgpp AT delorie DOT com In-Reply-To: from "Eli Zaretskii" at Jun 13, 96 08:55:39 am Content-Type: text > > 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. Yep, the FAQ explains this well...and you should just learn the AT&T syntax...it really isnt that hard when you get used to it... > > 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. But grx20 is fairly slow...its sometimes better to reinvent the wheel to make it more round... ;) Leathal.