🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #679

Re: VGA / IBM / DOS - ModeY putblock, getblock

#679
From: John A. Slagel
Date: Fri, 11 Sep 1992 23:33
36 lines
2205 bytes
ccsteve@cybaswan.UUCP (s marshall) writes:

>Does anybody have, or can point me in the direction of source code for these
>functions in ModeY which will avoid these restrictions. I`m not overly
>bothered about the width restriction its really the X co-ord problem that
>irritates me.

   I think I can... But, what is mode Y?  I have written a bunch of very
   fast putblt routines for modeX, which I think is the same thing?
   Explain what modeY is, and I'll send you my routines, if you want 'em.

   Routines:
   -A straight putblt that just overwrites the background. The fastest.
   -A putblt that doesn't overwrite the background for 0 valued pixels.
    (pretty fast)
   -A putblt that doesn't overwrite the background for 0 valued pixels,
    and also records the colors that it did overwrite so that you can
    tell if it is on top of something for collision detection.
    (no so fast, but I can draw ~40 12x12 sprites in 1 refresh cycle, 
     including collision detection and "smart" movement on top of a complex
     background.)

    None of these have any restrictions... except they have to be an 
    interval of 4 pixels wide.  I also use some 386 commands, such as
    movsd, but you can take those out if you're on a 286.

    Keep posting VGA stuff, folks.  This group is getting boring.
    If anyone else wants these routines, send me mail. If I get more
    than 10 requests, I'll just post 'em.


-- 
------------------------------------------------------------------------
 John A. Slagel     "My old man used to tell me, before he left this
 j-slagel1@uiuc.edu  shitty world, never chase buses or women- you
                     always get left behind." -The Marlboro Man
Technical Details
Message-ID: <BuFtFC.4EI@news.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jas37876
References: <999@cybaswan.UUCP>

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!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: VGA / IBM / DOS - ModeY putblock, getblock
References: <999@cybaswan.UUCP>
Message-ID: <BuFtFC.4EI@news.cso.uiuc.edu>
Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
Organization: University of Illinois at Urbana
Date: Fri, 11 Sep 1992 23:33:09 GMT
Lines: 36