mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
use i/o register constants
This commit is contained in:
parent
a60e850a86
commit
73bf7791f8
@ -202,10 +202,9 @@ u16 GetTrainerId(void)
|
||||
|
||||
void EnableVCountIntrAtLine150(void)
|
||||
{
|
||||
u16 gpuReg = GetGpuReg(0x4) & 0xFF | 0x9600;
|
||||
|
||||
SetGpuReg(4, gpuReg | 0x20);
|
||||
EnableInterrupts(0x4); // please use IRQ_MASK_VCOUNT
|
||||
u16 gpuReg = (GetGpuReg(REG_OFFSET_DISPSTAT) & 0xFF) | (150 << 8);
|
||||
SetGpuReg(REG_OFFSET_DISPSTAT, gpuReg | DISPSTAT_VCOUNT_INTR);
|
||||
EnableInterrupts(INTR_FLAG_VCOUNT);
|
||||
}
|
||||
|
||||
void InitKeys(void)
|
||||
|
Loading…
Reference in New Issue
Block a user