delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/19/09:45:11

From: steve AT dosius DOT zzn DOT com (Dosius)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Question?
Date: 19 Mar 2003 06:39:24 -0800
Organization: http://groups.google.com/
Lines: 19
Message-ID: <9307085f.0303190639.a48708a@posting.google.com>
References: <20030318154745 DOT 95358 DOT qmail AT web40802 DOT mail DOT yahoo DOT com> <3E775D4F DOT EBA1B8E3 AT yahoo DOT com> <9307085f DOT 0303181626 DOT 637d558d AT posting DOT google DOT com> <200303190037 DOT h2J0bOd28954 AT envy DOT delorie DOT com>
NNTP-Posting-Host: 204.168.131.19
X-Trace: posting.google.com 1048084765 4514 127.0.0.1 (19 Mar 2003 14:39:25 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 19 Mar 2003 14:39:25 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

DJ Delorie <dj AT delorie DOT com> wrote in message news:<200303190037 DOT h2J0bOd28954 AT envy DOT delorie DOT com>...
> >         mov      ax,      9                 ;wrstr()
> 
> Use AH and save a byte.

Whoops, my bad!  Typo ;) (hey, C is my cup of tea, not ASM - LOL)

> 
> >         mov      ax,      4Ch               ;exit()
> >         int      21h
> 
> In this case, you can just use "ret" and save four bytes.
> 
> You should see the tricks we go through to get djgpp's stub to fit
> into 2k of memory.

:) I can only imagine.

-uso.

- Raw text -


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