MEGA65 / mega65-core

MEGA65 FPGA core
Other
245 stars 88 forks source link

Set GotoX Rowmask changes colour palette in use for rendering #797

Open archiecrux opened 8 months ago

archiecrux commented 8 months ago

Choosing the colour palette for rendering the RRB object in advance and determine the rowmask with another gotox results in the colour palette used being changed, probably by using the rowmask value. The only way around this is to forego the alternative palette, or I missed something.

Core: release-0.96,20240224.00,3c10488 Hardware: MEGA65 R3a

CRAM dump (does not exactly match the picture):

1460 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F 146F D060 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 081F 1000 98C0 080F 0C0F

rwmsk3

archiecrux commented 3 months ago

There was recently a conversation on discord about the method for switching to the alternative palette. https://discord.com/channels/719326990221574164/977076334297743360/1260056621321683075

The previous method (colour ram byte 1 bits 5+6 set if GOTOX bit =1 and ROWMASK bit =0) should be replaced. Bit 5 of colour ram byte 0 should change the palette used in the future.

This issue would then be resolved.

lydon42 commented 2 months ago

Replacing a current method sounds like a incompatibility.