Re: [cc65] Atari crt0 update

Date view Thread view Subject view

From: David Lloyd (dmlloyd_at_atari-central.com)
Date: 2000-03-20 17:30:11


On Mon, 20 Mar 2000, Mark Keates wrote:

> Can you help me with the correct method of switching off Sprites. I've
> saved and restored GRACTL, SDMCTL and GPRIOR but still they persist
> when returning to DOS. (I can send you the example if you request it
> privately) I don't want to just position them off screen, so what did
> I miss? Perhaps PMBASE?

There's really only two ways to do it... the first (and best) way to do it
is to disable P/M in GRACTL and DMACTL, then simply move them off the
screen.  The second (and not so good) way to do it, is to disable P/M in
DMACTL, but *enable* it in GRACTL.  Then store zeros in the GRAFP0..GRAFP3
and GRAFM registers.  This will prevent the 'static' that you get if you
just disable them and leave them on the screen.

Incidentally, you can get some interesting background color effects in
text mode if you are clever with your GPRIOR values in combination with
GRAFP0..3 and GRAFM registers.... ;-)

- D


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:36 CET