| delorie.com/archives/browse.cgi | search |
| From: | "Campbell, Rolf [SKY:1U32:EXCH]" <cp1v45 AT americasm01 DOT nt DOT com> |
| 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 |
| 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |