🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1030

Re: Text Mode & ANSI Animation?

#1030
From: John A. Slagel
Date: Mon, 09 Nov 1992 00:28
34 lines
1853 bytes
K1N2 <K1N2@UNB.CA> writes:

>However, I tried doing this and it seems disappointingly slow. Of
>course this is probably because I was using the QBASIC interpreter
>that comes with DOS; but then again, this interpreter was on a
>386/33 PC.  Is it feasible to use text mode animation in the way I
>described, with some other language, perhaps?  Would it be in
>general faster than typical pixel-based animation?

    If you want speed, use C or Assembly.

    If you want to stick with Basic, try POKE'ing the video values 
    directly to video memory.  This is a lot faster than using PRINT.
    One other way to speed up QBASIC is to put a semi-colon on the end
    of every PRINT statement, so it doesn't have to do a line feed.

    To poke a value:
       DEF SEG = &HB800     'Point to the text screen buffer
       RowV = 12
       ColV = 36 
       CharV = ASC( "A" )   ' Display an A at 12, 36
       BackColorV = 7       'White
       ForeColorV = 15      '     on Blue
       POKE RowV*160+ColV*2, CharV
       POKE RowV*160+ColV*2+1, BackColorV*16+ForeColorV

    The video memory starts at segment B800.  It is in the form of
    character, attribute, ...etc.

    This speeds things up some in Basic.

-- 
------------------------------------------------------------------------
  John A. Slagel, email: jas37876@uxa.cso.uiuc.edu
Technical Details
Message-ID: <BxFAMq.KtH@news.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jas37876
References: <08NOV92.18660100.0176@UNBVM1.CSD.UNB.CA>

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jas37876
From: jas37876@uxa.cso.uiuc.edu (John A. Slagel)
Subject: Re: Text Mode & ANSI Animation?
References: <08NOV92.18660100.0176@UNBVM1.CSD.UNB.CA>
Message-ID: <BxFAMq.KtH@news.cso.uiuc.edu>
Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
Organization: University of Illinois at Urbana
Date: Mon, 9 Nov 1992 00:28:01 GMT
Lines: 34