12namespace DSC::Hardware
14 typedef short ExtendedPalette[256];
16 int tellExtendedPaletteIndex(
void* pal_offset);
17 ExtendedPalette* tellExtendedPaletteBase(
void* pal_offset);
21 inline static volatile unsigned int*
const DISPCNT = (
volatile unsigned int*
const)0x04000000;
23 inline static short*
const BgPalette = (
short*
const)0x05000000;
24 inline static short*
const ObjPalette = (
short*
const)0x05000200;
26 inline static short*
const Oam = (
short*
const)0x07000000;
28 inline static short*
const BgVram = (
short*
const)0x06000000;
29 inline static short*
const ObjVram = (
short*
const)0x06400000;
31 ExtendedPalette* BgExtendedPalette();
32 ExtendedPalette* ObjExtendedPalette();
34 ExtendedPalette* BgExtendedPalette(
int index);
35 ExtendedPalette* ObjExtendedPalette(
int index);
38 void objEnable(
int mapping_size,
bool use_ext_palette=
false);
41 bool objIsExtPaletteEnabled();
42 int objGetMappingSize();
47 inline static volatile unsigned int*
const DISPCNT = (
volatile unsigned int*
const)0x04001000;
49 inline static short*
const BgPalette = (
short*
const)0x05000400;
50 inline static short*
const ObjPalette = (
short*
const)0x05000600;
52 inline static short*
const Oam = (
short*
const)0x07000400;
54 inline static short*
const BgVram = (
short*
const)0x06200000;
55 inline static short*
const ObjVram = (
short*
const)0x06600000;
57 ExtendedPalette* BgExtendedPalette();
58 ExtendedPalette* ObjExtendedPalette();
60 ExtendedPalette* BgExtendedPalette(
int index);
61 ExtendedPalette* ObjExtendedPalette(
int index);
63 void objEnable(
int mapping_size,
bool use_ext_palette=
false);
66 bool objIsExtPaletteEnabled();
67 int objGetMappingSize();
70 extern volatile char*
const BanksReg;
78 bool is_background =
true;
103 bool is_enabled()
const;
108 void* lcd_offset()
const;
Definition: hardware.hpp:73