A89: Re: Re: GrayScale via C/ASM


[Prev][Next][Index][Thread]

A89: Re: Re: GrayScale via C/ASM




I tried what you said, but it says I have to include the gray patch? I have
#define USE_GRAY_PATCH in C, but must and how do I reference that in ASM?
----- Original Message -----
From: "Zeljko Juric" <zjuric@utic.net.ba>
To: <assembly-89@lists.ticalc.org>
Sent: Monday, October 02, 2000 2:04 AM
Subject: A89: Re: GrayScale via C/ASM


>
> Hi!
>
> > If I activate GrayMode(GRAY_ON) in C, is there a way to
> > switch between the pages of video memory using that in ASM,
> > so say I can call graphlib::put_sprite in plane 0 and again
> > with a different sprite in plane1 to create my graphic?
>
> Internal global vars __gp0 and __gp1 contains plane addresses:
>
> move.l __gp0,%a0
>
> takes plane0 address in a0.
>
> By the way, if you use graphlib::put_sprite (i.e. if you use
> DoorsOS library, you also can use gray4 from this library to
> make the program shorter; it is not so good idea to mix these
> two techniques).
>
> Zeljko
>




References: