From: "Campbell, Rolf [SKY:1U32:EXCH]" Newsgroups: alt.lang.asm,comp.os.msdos.djgpp,comp.os.msdos.programmer Subject: Re: NASM + DJGPP linking Date: Tue, 29 Jun 1999 09:32:32 -0400 Organization: Nortel Networks Lines: 27 Message-ID: <3778CAF0.7AFA476A@americasm01.nt.com> References: <930622805 DOT 86738 AT kyle DOT inet DOT net DOT nz> NNTP-Posting-Host: bmerhc00.ca.nortel.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.6 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com David Mitchell wrote: > _setmode: > push bp > mov bp, sp > > push ax > push dx > > mov ax, [bp+4] > int 10h > > pop dx > pop ax > > pop bp > > ret Aside from changing bp+4 to bp+8, you also don't have to preserve ax or dx (in DJGPP). -- -Rolf Campbell (39)3-6318