Date: Fri, 20 Jul 2001 17:06:21 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <7263-Fri20Jul2001170620+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 In-reply-to: <3b580b15$0$274$bb624dac@diablo.uninet.ee> (tonu@ids.ee) Subject: Re: pokeb peekb References: <3b580b15$0$274$bb624dac AT diablo DOT uninet DOT ee> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Tonu Aas" > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 20 Jul 2001 12:30:16 +0300 > > > Who cares about the startup code? You don't meant to say that someone > > would actually write a program that just puts the character in the middle > > of a screen and exits, do you? Who would need a ridiculous toy program > > like that? That's even less useful than the proverbial hello world. > > The question was: > > 1) what's the shortest complete program that pokes a face (ascii 1) > into the exact middle of the screen and exits to DOS ? You understand the word ``program'' too literally. It doesn't necessarily mean a complete executable; it might mean part of code that is to be incorporated into a larger program. As, in fact, it turned out to be in this case: see the messages by the OP. > So - djgpp is not the best choise. And it's not stupid thread. > It's about choosing right compiler for solving problem. No, it's about drawing a character with DJGPP. > For example: Borland compiler 12116 bytes; and portable. Portable to what? Only to Borland and DJGPP, and nothing else. > putch(0x01); `putch' invokes a real-mode interrupt (to position the cursor), and so is very slow, hundreds of CPU cycles, due to the mode switch.