Mercurial > hg > index.fcgi > lj > lj046-2players
comparison src/gbaisr.iwram.c @ 0:c84446dfb3f5
initial add
author | paulo@localhost |
---|---|
date | Fri, 13 Mar 2009 00:39:12 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:09a2652aec8f |
---|---|
1 #include "ljgba.h" | |
2 #define BIOS_IF (*(volatile unsigned short *)0x03FFFFF8) | |
3 | |
4 volatile int curTime = 0; | |
5 | |
6 void isr(void) { | |
7 unsigned int interrupts = REG_IF; | |
8 | |
9 if (interrupts & IRQ_VBLANK) { | |
10 ++curTime; | |
11 } | |
12 | |
13 BIOS_IF |= interrupts; | |
14 REG_IF = interrupts; | |
15 } |