[HELP ME 2] MSX Coulour Table not matching the VRAM

By tsMKG

Supporter (14)

tsMKG's picture

12-02-2018, 05:02

Yeah, I set the colour table at $0000 Tongue

But that's not the problem, the problem is that, you know that a value of "DE" should give you a gray/purple picture?
Well, that doesn't seems to be the case, where I still have the yellow, cyan from the previous colours Sad

And strangely, THIS HAPPENS WHEN I CALL A FILVRM AT ADDRESS $1800 (NOT THE COLOUR'S TABLE) TO CLEAR THE TILE MAP
OR is that each tile has its own colour no matter where you map them? :-? oO

Like, I'd like to know how the colour table works, thanks.

Login or register to post comments

By tsMKG

Supporter (14)

tsMKG's picture

12-02-2018, 05:11

By Grauw

Enlighted (6673)

Grauw's picture

12-02-2018, 20:55

I can’t really immediately see a cause from what I’m seeing, so I’m just going to shoot some blanks of random thoughts; maybe it will trigger some thought in you.

Normally in screen 2 there are three pattern groups (with one colour / pattern / name table each), only when you configure the colour/pattern table address in a certain way it can mirror them to a single tile set.

Note also that when setting a table base address, you need to mask some bits as 1, otherwise it will mirror those tables. But I think this looks correct in the code.

(I assume you’ve read the TMS9918 and/or V9938 application manuals? They’ve got quite extensive descriptions.)

Maybe vpoke around in Basic a little to test the waters… to confirm if the setup in assembly is correct.

p.s. How is djnz broken? Smile

By tsMKG

Supporter (14)

tsMKG's picture

12-02-2018, 20:57

Grauw wrote:

p.s. How is djnz broken? Smile

0==256

but that doesn't matters because it's for the keyboard routine Tongue

By TomH

Master (166)

TomH's picture

12-02-2018, 21:06

tsMKG wrote:
Grauw wrote:

p.s. How is djnz broken? Smile

0==256

If it were to check for zero before decrementing (and conditionally jumping), wouldn't it need to be nzdj?

By Grauw

Enlighted (6673)

Grauw's picture

12-02-2018, 21:35

You can count one more! What a great feature! Smile

My MSX profile