Няма описание

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Registers
  3. //
  4. #ifndef GBA_REGS_H
  5. #define GBA_REGS_H
  6. #include "gba_types.h"
  7. #define OAM_Data ((u16*)0x6010000) // Sprite data (bitmapped)
  8. #define FrontBuffer ((u16*)0x6000000) // Front Display Memory (the screen in mode 3-5)
  9. #define BG0CNT *(u16*)0x4000008
  10. #define BG1CNT *(u16*)0x400000A
  11. #define BG2CNT *(u16*)0x400000C
  12. #define BG3CNT *(u16*)0x400000E
  13. #define BG0HOFF *(u16*)0x4000010
  14. #define BG0VOFF *(u16*)0x4000012
  15. #define BG1HOFF *(u16*)0x4000014
  16. #define BG1VOFF *(u16*)0x4000016
  17. #define BG2HOFF *(u16*)0x4000018
  18. #define BG2VOFF *(u16*)0x400001A
  19. #define BG3HOFF *(u16*)0x400001C
  20. #define BG3VOFF *(u16*)0x400001E
  21. #define WIN0H *(u16*)0x4000040
  22. #define WIN1H *(u16*)0x4000042
  23. #define WIN0V *(u16*)0x4000044
  24. #define WIN1V *(u16*)0x4000046
  25. #define WININ *(u16*)0x4000048
  26. #define WINOUT *(u16*)0x400004A
  27. #define MOSIAC *(u16*)0x400001C
  28. #define BLDMOD *(u16*)0x400001E
  29. #define REG_DISPCNT *(u16*)0x4000000 // Display control mode
  30. #define REG_VCOUNT *(volatile u16*)0x4000006 // Vertical control sync
  31. #define vsync() while(REG_VCOUNT != 160);
  32. #endif