Using defines instead of magic number

This commit is contained in:
Eduardo Quezada D'Ottone 2024-01-26 10:10:12 -03:00 committed by GitHub
parent 8a52316dd2
commit 84142acb25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,10 @@ void AgbMain()
InitGpuRegManager();
// Setup waitstates for all ROM mirrors
if (DECAP_ENABLED && DECAP_MIRRORING)
REG_WAITCNT = WAITCNT_PREFETCH_ENABLE | 0x5B4; // WAITCNT_WSX_S_1 | WAITCNT_WSX_N_3
REG_WAITCNT = WAITCNT_PREFETCH_ENABLE
| WAITCNT_WS0_S_1 | WAITCNT_WS0_N_3
| WAITCNT_WS1_S_1 | WAITCNT_WS1_N_3
| WAITCNT_WS2_S_1 | WAITCNT_WS2_N_3;
else
REG_WAITCNT = WAITCNT_PREFETCH_ENABLE | WAITCNT_WS0_S_1 | WAITCNT_WS0_N_3;
InitKeys();