using palette screen 5

Por Wolverine_nl

Paragon (1160)

Imagen del Wolverine_nl

10-06-2014, 11:59

Hi All
I am trying to use a palette in screen 5 within MSX-C,
I loaded a .plt file (from graphsaurus) into starting address 0x69FF.
The file is loaded as a binary file. I did INIPLT , but i see no result on my loaded picture. Can anybody help me out with some advise? I read the V9938 prog. guide but that didnt really got me further on this. I saw a SETPLT function, but i dont really know how this one actually works, is it SETPLT(color, data(RGB) ?

Login sesión o register para postear comentarios

Por Wolverine_nl

Paragon (1160)

Imagen del Wolverine_nl

10-06-2014, 12:58

ah, I found that rstplt() does the trick, it is ofcourse the equivalent of color=restore. And i changed the palette starting adress to 0x7680.

Por TheSpecialist

Expert (113)

Imagen del TheSpecialist

10-06-2014, 13:23

I don't know what your MSX-C library looks like, but can't you see in the header file how SETPLT works?

Por Wolverine_nl

Paragon (1160)

Imagen del Wolverine_nl

10-06-2014, 13:27

first it is iniplt then loading palette data and then rstplt, i use the 1.20 plus the extra libraries.
this works fine. All I got was some example from a demo source program and the headerfiles I have here completely mapped out, only I just found out to do a fade out for instance i need to make a struc, get the rgb values in it with the pal number and then make the values go to zero in a certain order to not see all the rainbowcolours Wink

Por Wolverine_nl

Paragon (1160)

Imagen del Wolverine_nl

10-06-2014, 13:34

yes, how setplt exaclty works, i tried a few things but it doesnt say exactly,
it says you get 3 values back, I read somewhere it is a structure NAT value.
The fade out function i wrote does something, goes to black, only not like a nice one.
The loop first scans the pal numbers and 1 by 1 counts the rgb values to 0, it should work simultaneously. So I think i got the setplt wrong