finalizr: correct green color prom decode

This commit is contained in:
hap 2024-11-19 16:06:18 +01:00
parent e16d158279
commit 2defcf6248

View File

@ -104,8 +104,8 @@ private:
The palette PROMs are connected to the RGB output this way: The palette PROMs are connected to the RGB output this way:
bit 7 -- 220 ohm resistor -- \ bit 7 -- 220 ohm resistor -- \
-- 470 ohm resistor -- | -- 470 ohm pulldown resistor -- GREEN -- 1 kohm resistor -- | -- 470 ohm pulldown resistor -- GREEN
-- 1 kohm resistor -- | -- 470 ohm resistor -- |
-- 2.2 kohm resistor -- / -- 2.2 kohm resistor -- /
-- 220 ohm resistor -- \ -- 220 ohm resistor -- \
-- 470 ohm resistor -- | -- 470 ohm pulldown resistor -- RED -- 470 ohm resistor -- | -- 470 ohm pulldown resistor -- RED
@ -146,8 +146,8 @@ void finalizr_state::palette(palette_device &palette) const
// green component // green component
bit0 = BIT(color_prom[i], 4); bit0 = BIT(color_prom[i], 4);
bit1 = BIT(color_prom[i], 5); bit1 = BIT(color_prom[i], 6);
bit2 = BIT(color_prom[i], 6); bit2 = BIT(color_prom[i], 5);
bit3 = BIT(color_prom[i], 7); bit3 = BIT(color_prom[i], 7);
int const g = combine_weights(gweights, bit0, bit1, bit2, bit3); int const g = combine_weights(gweights, bit0, bit1, bit2, bit3);