0.3.1

Macros

#define VDP2_SCRN_PND_CONFIG_0(cram_mode, cpd_addr, pal_addr, vf, hf)
 Not yet documented.
 
#define VDP2_SCRN_PND_CONFIG_1(cram_mode, cpd_addr, pal_addr)
 Not yet documented.
 
#define VDP2_SCRN_PND_CONFIG_2(cram_mode, cpd_addr, pal_addr, vf, hf)
 Not yet documented.
 
#define VDP2_SCRN_PND_CONFIG_3(cram_mode, cpd_addr, pal_addr)
 Not yet documented.
 
#define VDP2_SCRN_PND_CONFIG_4(cram_mode, cpd_addr, pal_addr, vf, hf)
 Not yet documented.
 
#define VDP2_SCRN_PND_CONFIG_5(cram_mode, cpd_addr, pal_addr)
 Not yet documented.
 
#define VDP2_SCRN_PND_CONFIG_6(cram_mode, cpd_addr, pal_addr, vf, hf)
 Not yet documented.
 
#define VDP2_SCRN_PND_CONFIG_7(cram_mode, cpd_addr, pal_addr, vf, hf)
 Not yet documented.
 
#define VDP2_SCRN_PND_CONFIG_8(cram_mode, cpd_addr, pal_addr, vf, hf, pr, cc)
 Not yet documented.
 

Detailed Description

Configuration table mapping. Depending on how the normal/rotational background is set up, choose a config:

Config PND Cell Auxiliary mode Page size Palette banks Color count
0 1-word 1x1 0 0x400 128 16
1 1-word 1x1 1 0x1000 128 16
2 1-word 2x2 0 0x400 128 16
3 1-word 2x2 1 0x1000 128 16
4 1-word 1x1 0 0x200 8 16, 256, 2048
5 1-word 1x1 1 0x800 8 16, 256, 2048
6 1-word 2x2 0 0x200 8 16, 256, 2048
7 1-word 2x2 1 0x0800 8 16, 256, 2048
8 2-word 0x8000 8/128 16, 256, 2048

Macro Definition Documentation

◆ VDP2_SCRN_PND_CONFIG_0

#define VDP2_SCRN_PND_CONFIG_0 (   cram_mode,
  cpd_addr,
  pal_addr,
  vf,
  hf 
)
Value:
(((VDP2_SCRN_PND_PAL_NUM(cram_mode, pal_addr) & 0x000F) << 12) | \
(((vf) & 0x01) << 11) | \
(((hf) & 0x01) << 10) | \
(VDP2_SCRN_PND_CP_NUM(cpd_addr) & 0x03FF))
#define VDP2_SCRN_PND_PAL_NUM(cram_mode, cram_addr)
Not yet documented.
Definition: scrn_macros.h:178
#define VDP2_SCRN_PND_CP_NUM(addr)
Not yet documented.
Definition: scrn_macros.h:154

Not yet documented.

Parameters
cram_mode
cpd_addr
pal_addr
vf
hf
Deprecated:
May be replaced with a struct.

◆ VDP2_SCRN_PND_CONFIG_1

#define VDP2_SCRN_PND_CONFIG_1 (   cram_mode,
  cpd_addr,
  pal_addr 
)
Value:
(((VDP2_SCRN_PND_PAL_NUM(cram_mode, pal_addr) & 0x000F) << 12) | \
(VDP2_SCRN_PND_CP_NUM(cpd_addr) & 0x0FFF))

Not yet documented.

Parameters
cram_mode
cpd_addr
pal_addr
Deprecated:
May be replaced with a struct.

◆ VDP2_SCRN_PND_CONFIG_2

#define VDP2_SCRN_PND_CONFIG_2 (   cram_mode,
  cpd_addr,
  pal_addr,
  vf,
  hf 
)
Value:
(((VDP2_SCRN_PND_PAL_NUM(cram_mode, pal_addr) & 0x000F) << 12) | \
(((vf) & 0x01) << 11) | \
(((hf) & 0x01) << 10) | \
((VDP2_SCRN_PND_CP_NUM(cpd_addr) >> 2) & 0x03FF))

Not yet documented.

Parameters
cram_mode
cpd_addr
pal_addr
vf
hf
Deprecated:
May be replaced with a struct.

◆ VDP2_SCRN_PND_CONFIG_3

#define VDP2_SCRN_PND_CONFIG_3 (   cram_mode,
  cpd_addr,
  pal_addr 
)
Value:
(((VDP2_SCRN_PND_PAL_NUM(cram_mode, pal_addr) & 0x000F) << 12) | \
((VDP2_SCRN_PND_CP_NUM(cpd_addr) >> 2) & 0x0FFF))

Not yet documented.

Parameters
cram_mode
cpd_addr
pal_addr
Deprecated:
May be replaced with a struct.

◆ VDP2_SCRN_PND_CONFIG_4

#define VDP2_SCRN_PND_CONFIG_4 (   cram_mode,
  cpd_addr,
  pal_addr,
  vf,
  hf 
)
Value:
((((VDP2_SCRN_PND_PAL_NUM(cram_mode, pal_addr >> 4)) & 0x0007) << 12) | \
(((vf) & 0x01) << 11) | \
(((hf) & 0x01) << 10) | \
(VDP2_SCRN_PND_CP_NUM(cpd_addr) & 0x03FF))

Not yet documented.

Parameters
cram_mode
cpd_addr
pal_addr
vf
hf
Deprecated:
May be replaced with a struct.

◆ VDP2_SCRN_PND_CONFIG_5

#define VDP2_SCRN_PND_CONFIG_5 (   cram_mode,
  cpd_addr,
  pal_addr 
)
Value:
((((VDP2_SCRN_PND_PAL_NUM(cram_mode, pal_addr >> 4)) & 0x0007) << 12) | \
(VDP2_SCRN_PND_CP_NUM(cpd_addr) & 0x0FFF))

Not yet documented.

Parameters
cram_mode
cpd_addr
pal_addr
Deprecated:
May be replaced with a struct.

◆ VDP2_SCRN_PND_CONFIG_6

#define VDP2_SCRN_PND_CONFIG_6 (   cram_mode,
  cpd_addr,
  pal_addr,
  vf,
  hf 
)
Value:
((((VDP2_SCRN_PND_PAL_NUM(cram_mode, pal_addr >> 4)) & 0x0007) << 12) | \
(((vf) & 0x01) << 11) | \
(((hf) & 0x01) << 10) | \
((VDP2_SCRN_PND_CP_NUM(cpd_addr) >> 2) & 0x03FF))

Not yet documented.

Parameters
cram_mode
cpd_addr
pal_addr
vf
hf
Deprecated:
May be replaced with a struct.

◆ VDP2_SCRN_PND_CONFIG_7

#define VDP2_SCRN_PND_CONFIG_7 (   cram_mode,
  cpd_addr,
  pal_addr,
  vf,
  hf 
)
Value:
((((VDP2_SCRN_PND_PAL_NUM(cram_mode, pal_addr >> 4)) & 0x0007) << 12) | \
((VDP2_SCRN_PND_CP_NUM(cpd_addr) >> 2) & 0x0FFF))

Not yet documented.

Parameters
cram_mode
cpd_addr
pal_addr
vf
hf
Deprecated:
May be replaced with a struct.

◆ VDP2_SCRN_PND_CONFIG_8

#define VDP2_SCRN_PND_CONFIG_8 (   cram_mode,
  cpd_addr,
  pal_addr,
  vf,
  hf,
  pr,
  cc 
)
Value:
((((vf) & 0x01) << 31) | \
(((hf) & 0x01) << 30) | \
(((pr) & 0x01) << 29) | \
(((cc) & 0x01) << 28) | \
((VDP2_SCRN_PND_PAL_NUM(cram_mode, pal_addr) & 0x007F) << 16) | \
(VDP2_SCRN_PND_CP_NUM(cpd_addr) & 0x7FFF))

Not yet documented.

Parameters
cram_mode
cpd_addr
pal_addr
vf
hf
pr
cc
Deprecated:
May be replaced with a struct.