view src/gbaisr.iwram.c @ 1:38c62fded078

initial builds (linux and lj.nds)
author paulo@localhost
date Fri, 13 Mar 2009 01:10:13 -0700
parents
children
line source
1 #include "ljgba.h"
2 #define BIOS_IF (*(volatile unsigned short *)0x03FFFFF8)
4 volatile int curTime = 0;
6 void isr(void) {
7 unsigned int interrupts = REG_IF;
9 if (interrupts & IRQ_VBLANK) {
10 ++curTime;
11 }
13 BIOS_IF |= interrupts;
14 REG_IF = interrupts;
15 }