use i/o register constants
This commit is contained in:
+3
-4
@@ -202,10 +202,9 @@ u16 GetTrainerId(void)
|
|||||||
|
|
||||||
void EnableVCountIntrAtLine150(void)
|
void EnableVCountIntrAtLine150(void)
|
||||||
{
|
{
|
||||||
u16 gpuReg = GetGpuReg(0x4) & 0xFF | 0x9600;
|
u16 gpuReg = (GetGpuReg(REG_OFFSET_DISPSTAT) & 0xFF) | (150 << 8);
|
||||||
|
SetGpuReg(REG_OFFSET_DISPSTAT, gpuReg | DISPSTAT_VCOUNT_INTR);
|
||||||
SetGpuReg(4, gpuReg | 0x20);
|
EnableInterrupts(INTR_FLAG_VCOUNT);
|
||||||
EnableInterrupts(0x4); // please use IRQ_MASK_VCOUNT
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitKeys(void)
|
void InitKeys(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user