mirror of
https://github.com/Lorenzooone/Pokemon-Gen3-to-Gen-X.git
synced 2026-03-21 17:24:39 -05:00
Fix NDS time setting
This commit is contained in:
parent
b3500631ba
commit
856380cee3
|
|
@ -54,9 +54,7 @@ ALWAYS_INLINE MAX_OPTIMIZE void __reset_vcount(void) {
|
|||
#define REG_WAITCNT REG_EXMEMCNT // Wait state Control
|
||||
#define SRAM_READING_VALID_WAITCYCLES 3
|
||||
#define NON_SRAM_MASK 0xFFFC
|
||||
#define EXMEMCNT_MASK_SLOT2_CLOCKRATE (3<<5)
|
||||
#define EXMEMCNT_SLOT2_CLOCKRATE_1 (1<<5)
|
||||
#define BASE_WAITCNT_VAL EXMEMCNT_SLOT2_CLOCKRATE_1
|
||||
#define BASE_WAITCNT_VAL 0x0014
|
||||
#define TIMEOUT_INCREASE 2
|
||||
#define OVRAM_START ((uintptr_t)SPRITE_GFX)
|
||||
#define OVRAM_START_SUB ((uintptr_t)SPRITE_GFX_SUB)
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ int main(void)
|
|||
u8 cursor_y_pos = 0;
|
||||
u32 date = 0x00010100;
|
||||
u32 time = 0;
|
||||
REG_WAITCNT = BASE_WAITCNT_VAL;
|
||||
|
||||
//enable_ezo_clock();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user