Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Agb.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include "yos_main.h"
- #include <isagbprint.h>
- /////////////////////////////////////////////////////////////////////
- //Global Function
- void IntrDummy(void);
- /////////////////////////////////////////////////////////////////////
- //Global Variable
- gMainVal gMain;
- IntrFuncp IntrTable[15];
- /////////////////////////////////////////////////////////////////////
- //Interrupt Table
- const IntrFuncp IntrTable_0[14] = {
- IntrDummy, // V-blank interrupt
- IntrDummy, // H-blank interrupt
- IntrDummy, // V-count interrupt
- IntrDummy, // Timer 0 interrupt
- IntrDummy, // Timer 1 interrupt
- IntrDummy, // Timer 2 interrupt
- IntrDummy, // Timer 3 interrupt
- IntrDummy, // Serial Communication interrupt
- IntrDummy, // DMA 0 interrupt
- IntrDummy, // DMA 1 interrupt
- IntrDummy, // DMA 2 interrupt
- IntrDummy, // DMA 3 interrupt
- IntrDummy, // Key interrupt
- IntrDummy, // Game Pak interrupt
- };
- void AgbMain(void)
- {
- printf("gba test!");
- AGBPrintf("gba test!");
- while(1)
- {}
- }
- /////////////////////////////////////////////////////////////////////
- //Interrupt Dummy Routine
- void IntrDummy(void)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement