annotate src/gbaisr.iwram.c @ 0:c84446dfb3f5

initial add
author paulo@localhost
date Fri, 13 Mar 2009 00:39: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 }