Removed comments
This commit is contained in:
@@ -8,7 +8,6 @@ public class Interrupt
|
||||
}
|
||||
public static boolean checkTimerInterruptConditions() {
|
||||
boolean timerInterruptEnabled = (Memory.getRegister(0x0B) & 0x20) == 0x20;
|
||||
//boolean timerOverflowInterruptFlag = (Memory.getRegister(0x0B) & 0x04) == 0x04;
|
||||
return globalInterruptEnabled() && timerInterruptEnabled;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public class Timer
|
||||
{
|
||||
int timerRegister = Memory.getRegister(0x01);
|
||||
timerRegister = (timerRegister + 1) % 256;
|
||||
if(timerRegister == 0)// && !((Memory.getRegister(0x0B) & 0x04) == 0x04)) //check for timer Overflow --> interrupt
|
||||
if(timerRegister == 0) //check for timer Overflow --> interrupt
|
||||
{
|
||||
System.out.println("Timer Overflow");
|
||||
Memory.setRegister(0x0B, Memory.getRegister(0x0B) | 0x04); //set T0IF
|
||||
|
||||
Reference in New Issue
Block a user