Нема описа

12345678910111213141516171819202122232425262728
  1. #ifndef GBA_BG_H
  2. #define GBA_BG_H
  3. ///BGCNT defines ///
  4. #define BG_MOSAIC_ENABLE 0x40
  5. #define BG_COLOR_256 0x80
  6. #define BG_COLOR_16 0x0
  7. #define CharBaseBlock(n) (((n)*0x4000)+0x6000000)
  8. #define ScreenBaseBlock(n) (((n)*0x800)+0x6000000)
  9. #define Pallet(n) (((n)*2)+0x5000000)
  10. #define CHAR_SHIFT 2
  11. #define SCREEN_SHIFT 8
  12. #define TEXTBG_SIZE_256x256 0x0
  13. #define TEXTBG_SIZE_256x512 0x8000
  14. #define TEXTBG_SIZE_512x256 0x4000
  15. #define TEXTBG_SIZE_512x512 0xC000
  16. #define ROTBG_SIZE_128x128 0x0
  17. #define ROTBG_SIZE_256x256 0x4000
  18. #define ROTBG_SIZE_512x512 0x8000
  19. #define ROTBG_SIZE_1024x1024 0xC000
  20. #define WRAPAROUND 0x1
  21. #endif