Ingen beskrivning

gba.h 526B

123456789101112131415161718192021222324
  1. //
  2. // Including all the macros into gba.h
  3. //
  4. #ifndef GBA_H
  5. #define GBA_H
  6. #if defined ( __thumb__ )
  7. #define SystemCall(Number) __asm ("SWI "#Number"\n" ::: "r0", "r1", "r2", "r3")
  8. #else
  9. #define SystemCall(Number) __asm ("SWI "#Number" << 16\n" :::"r0", "r1", "r2", "r3")
  10. #endif
  11. #include "gba_types.h"
  12. #include "gba_regs.h"
  13. #include "gba_keys.h"
  14. #include "gba_video.h"
  15. #include "gba_sprites.h"
  16. #include "gba_bg.h"
  17. // e.g to include all header files, just write #include "gba.h" in the top of your program
  18. #endif