annotate src/gbaisr.iwram.c @ 3:17286938e22a

change DS alt. rotate key to rotate twice
author paulo@localhost
date Wed, 08 Apr 2009 21:50:13 -0700
parents
children
rev   line source
paulo@0 1 #include "ljgba.h"
paulo@0 2 #define BIOS_IF (*(volatile unsigned short *)0x03FFFFF8)
paulo@0 3
paulo@0 4 volatile int curTime = 0;
paulo@0 5
paulo@0 6 void isr(void) {
paulo@0 7 unsigned int interrupts = REG_IF;
paulo@0 8
paulo@0 9 if (interrupts & IRQ_VBLANK) {
paulo@0 10 ++curTime;
paulo@0 11 }
paulo@0 12
paulo@0 13 BIOS_IF |= interrupts;
paulo@0 14 REG_IF = interrupts;
paulo@0 15 }