A89: Re: GrayScale via C/ASM


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

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



Follow-Ups: