fix broken 64dd direct mode

This commit is contained in:
Mateusz Faderewski 2023-12-14 00:10:03 +01:00
parent f4ffacd9b4
commit 7837724dd8

View File

@ -38,14 +38,11 @@ void cic_reset_parameters (void) {
} }
void cic_set_parameters (uint32_t *args) { void cic_set_parameters (uint32_t *args) {
cic_region_t region = rtc_get_region();
uint32_t cic_config_0 = args[0] & (0x00FFFFFF); uint32_t cic_config_0 = args[0] & (0x00FFFFFF);
uint32_t cic_config_1 = args[1]; uint32_t cic_config_1 = args[1];
if (region == REGION_PAL) { cic_config_0 |= fpga_reg_get(REG_CIC_0) & (CIC_64DD_MODE | CIC_REGION);
cic_config_0 |= CIC_REGION;
}
if (args[0] & (1 << 24)) { if (args[0] & (1 << 24)) {
cic_config_0 |= CIC_DISABLED; cic_config_0 |= CIC_DISABLED;
} }