Advertisement
Bond697

gba

Jan 25th, 2013
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.29 KB | None | 0 0
  1. #include <Agb.h>
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4. #include "yos_main.h"
  5. #include <isagbprint.h>
  6.  
  7.  
  8. /////////////////////////////////////////////////////////////////////
  9. //Global Function
  10. void IntrDummy(void);
  11.  
  12. /////////////////////////////////////////////////////////////////////
  13. //Global Variable
  14. gMainVal gMain;
  15. IntrFuncp IntrTable[15];
  16.  
  17. /////////////////////////////////////////////////////////////////////
  18. //Interrupt Table
  19. const IntrFuncp IntrTable_0[14] = {
  20.     IntrDummy,     // V-blank interrupt
  21.     IntrDummy,      // H-blank interrupt
  22.     IntrDummy,      // V-count interrupt
  23.     IntrDummy,      // Timer 0 interrupt
  24.     IntrDummy,      // Timer 1 interrupt
  25.     IntrDummy,      // Timer 2 interrupt
  26.     IntrDummy,      // Timer 3 interrupt
  27.     IntrDummy,      // Serial Communication interrupt
  28.     IntrDummy,      // DMA 0 interrupt
  29.     IntrDummy,      // DMA 1 interrupt
  30.     IntrDummy,      // DMA 2 interrupt
  31.     IntrDummy,      // DMA 3 interrupt
  32.     IntrDummy,      // Key interrupt
  33.     IntrDummy,      // Game Pak interrupt
  34. };
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. void AgbMain(void)
  45.  
  46. {
  47.  
  48. printf("gba test!");
  49. AGBPrintf("gba test!");
  50.  
  51. while(1)
  52. {}
  53.  
  54.  
  55. }
  56.  
  57.  
  58. /////////////////////////////////////////////////////////////////////
  59. //Interrupt Dummy Routine
  60. void IntrDummy(void)
  61. {
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement