libws libws
WSwan hardware library for the Wonderful toolchain
Loading...
Searching...
No Matches
Defines - Video memory

Macros

#define MEM_TILE(i)
 Pointer to tile.
 
#define MEM_TILE_4BPP(i)
 Pointer to 4bpp tile.
 
#define MEM_TILE_4BPP_BANK0(i)
 Pointer to 4bpp tile in bank 0 (0-511).
 
#define MEM_TILE_4BPP_BANK1(i)
 Pointer to 4bpp tile in bank 1 (512-1023).
 
#define MEM_COLOR_PALETTE(i)
 Pointer to color palette.
 
#define MEM_SCR_PALETTE   MEM_COLOR_PALETTE
 Pointer to screen color palette.
 
#define MEM_SPR_PALETTE(i)
 Pointer to sprite color palette.
 

Detailed Description

Macro Definition Documentation

◆ MEM_COLOR_PALETTE

#define MEM_COLOR_PALETTE ( i)
Value:
((uint16_t __wf_iram*) (0xFE00 + ((i) << 5)))

Pointer to color palette.

Parameters
iColor palette (0-15).

Definition at line 174 of file display.h.

◆ MEM_SCR_PALETTE

#define MEM_SCR_PALETTE   MEM_COLOR_PALETTE

Pointer to screen color palette.

Parameters
iColor palette (0-15).

Definition at line 181 of file display.h.

◆ MEM_SPR_PALETTE

#define MEM_SPR_PALETTE ( i)
Value:
((uint16_t __wf_iram*) (0xFF00 + ((i) << 5)))

Pointer to sprite color palette.

Parameters
iColor palette (0-7).

Definition at line 188 of file display.h.

◆ MEM_TILE

#define MEM_TILE ( i)
Value:
((uint8_t __wf_iram*) (0x2000 + ((i) << 4)))

Pointer to tile.

Parameters
iTile index (0-511).

Definition at line 146 of file display.h.

◆ MEM_TILE_4BPP

#define MEM_TILE_4BPP ( i)
Value:
#define MEM_TILE_4BPP_BANK0(i)
Pointer to 4bpp tile in bank 0 (0-511).
Definition display.h:160

Pointer to 4bpp tile.

Parameters
iTile index (0-1023).

Definition at line 153 of file display.h.

◆ MEM_TILE_4BPP_BANK0

#define MEM_TILE_4BPP_BANK0 ( i)
Value:
((uint8_t __wf_iram*) (0x4000 + ((i) << 5)))

Pointer to 4bpp tile in bank 0 (0-511).

Parameters
iTile index (0-511).

Definition at line 160 of file display.h.

◆ MEM_TILE_4BPP_BANK1

#define MEM_TILE_4BPP_BANK1 ( i)
Value:
((uint8_t __wf_iram*) (0x8000 + ((i) << 5)))

Pointer to 4bpp tile in bank 1 (512-1023).

Parameters
iTile index (0-511).

Definition at line 167 of file display.h.