Re: [stella] Screen shots

Subject: Re: [stella] Screen shots
From: Erik Mooney <emooney@xxxxxxxxxxxxxxxx>
Date: Wed, 21 Jan 1998 13:24:51 -0500 (EST)
> Yeah, I went ahead and bit the bullet.  There's two copies of everything
> now.  One set of macros for original mode 13, and one set for putting
> undoubled pixels into a buffer.  Original mode 13 runs pretty much the same.
> Mode 13 buffered (in the snippet of code in my previous post) is around 20%
> slower.  But that code was just for testing :)

Good, good.  You buffer the pixels before doubling them?  Do you use
every other byte in the buffer, or do you just store the (160 per line)
pixels sequentially, using only 32k of the buffer?  My mode-x routine will
be just about the same speed as your buffered mode-13 routine - I have to
load and store all the pixels.  Maybe a *little* faster, since I can have
the hardware double them for me instead of doing it in code.

> >Sounds good to me.  Call my file modex.asm .  Also, can I put a procedure
> >ModeXInit in my file, and just have you call that to init mode-x?  (this
> >way, *everything* I do is in modex.asm... cleaner that way, I think)  BTW,
> >you don't need to do anything special to get out of mode-x - just setting
> >the video mode to text mode works.
> 
> The only question I have left is about the palette.  Should I put it into
> mode 13 and do the palette setup THEN call ModeXInit, or do you need to do
> the whole thing?  If you need to do the whole thing, can we keep the palette
> setting code common?

The first way will work fine.  Going into mode-x preserves the current
palette, so you can set mode 13, set the palette, then (if modeX then call
modexinit.)



--
Stella list is Administered by krishna@xxxxxxxxxxxx <Glenn Saunders>
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/stella.html
+-shameless plugs-------------------------------------------------------+
| Stella documentary at http://www.primenet.com/~krishna                |
| Nick's VCS links via http://www.primenet.com/~nickb/atariprg.htm      |
| Write the best game, win framed autographs of famous Atari alumni!!   |
+-----------------------------------------------------------------------+

Current Thread