Mercurial > hg > index.fcgi > lj > lj046-2players
annotate src/gbaisr.iwram.c @ 2:80a2761bd3a4
change DS keys (add alt. rotate)
author | paulo@localhost |
---|---|
date | Mon, 23 Mar 2009 01:19:12 -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 } |