Defines | |
#define | BG_MOSAIC 0x0040 |
Enable Mosaic. | |
#define | BG_4BPP 0 |
4bpp (16 color) bg (no effect on affine bg) | |
#define | BG_8BPP 0x0080 |
8bpp (256 color) bg (no effect on affine bg) | |
#define | BG_WRAP 0x2000 |
Wrap around edges of affine bgs. | |
#define | BG_SIZE0 0 |
#define | BG_SIZE1 0x4000 |
#define | BG_SIZE2 0x8000 |
#define | BG_SIZE3 0xC000 |
#define | BG_REG_32x32 0 |
reg bg, 32x32 (256x256 px) | |
#define | BG_REG_64x32 0x4000 |
reg bg, 64x32 (512x256 px) | |
#define | BG_REG_32x64 0x8000 |
reg bg, 32x64 (256x512 px) | |
#define | BG_REG_64x64 0xC000 |
reg bg, 64x64 (512x512 px) | |
#define | BG_AFF_16x16 0 |
affine bg, 16x16 (128x128 px) | |
#define | BG_AFF_32x32 0x4000 |
affine bg, 32x32 (256x256 px) | |
#define | BG_AFF_64x64 0x8000 |
affine bg, 64x64 (512x512 px) | |
#define | BG_AFF_128x128 0xC000 |
affine bg, 128x128 (1024x1024 px) | |
#define | BG_PRIO_MASK 0x0003 |
#define | BG_PRIO_SHIFT 0 |
#define | BG_PRIO(n) ((n)<<BG_PRIO_SHIFT) |
#define | BG_CBB_MASK 0x000C |
#define | BG_CBB_SHIFT 2 |
#define | BG_CBB(n) ((n)<<BG_CBB_SHIFT) |
#define | BG_SBB_MASK 0x1F00 |
#define | BG_SBB_SHIFT 8 |
#define | BG_SBB(n) ((n)<<BG_SBB_SHIFT) |
#define | BG_SIZE_MASK 0xC000 |
#define | BG_SIZE_SHIFT 14 |
#define | BG_SIZE(n) ((n)<<BG_SIZE_SHIFT) |
#define | BG_BUILD(cbb, sbb, size, bpp, prio, mos, wrap) |
#define BG_BUILD | ( | cbb, | |||
sbb, | |||||
size, | |||||
bpp, | |||||
prio, | |||||
mos, | |||||
wrap | ) |
Value:
( \ ((size)<<14) | (((wrap)&1)<<13) | (((sbb)&31)<<8 \ | (((bpp)&8)<<4) | (((mos)&1)<<6) | (((cbb)&3)<<2) \ | ((prio)&3) \ )