llvm-mos-sdk
Macros | Functions | Variables
nesdoug.h File Reference
#include <peekpoke.h>
Include dependency graph for nesdoug.h:

Go to the source code of this file.

Macros

#define COL_EMP_BLUE   0x80
 
#define COL_EMP_GREEN   0x40
 
#define COL_EMP_RED   0x20
 
#define COL_EMP_NORMAL   0x00
 
#define COL_EMP_DARK   0xe0
 
#define high_byte(a)   *((char *)&a + 1)
 
#define low_byte(a)   *((char *)&a)
 

Functions

void set_vram_buffer (void)
 
char get_pad_new (char pad)
 
char get_frame_count (void)
 
void set_music_speed (char tempo)
 
void set_scroll_x (unsigned x)
 
void set_scroll_y (unsigned y)
 
void set_data_pointer (const void *data)
 
void set_mt_pointer (const void *metatiles)
 
void color_emphasis (char color)
 
void seed_rng (void)
 

Variables

int ppu_address
 
char len
 
void * object2
 
char to
 
unsigned scroll
 
char x
 
char char y
 
char metatile
 
char index
 

Macro Definition Documentation

◆ COL_EMP_BLUE

#define COL_EMP_BLUE   0x80

◆ COL_EMP_DARK

#define COL_EMP_DARK   0xe0

◆ COL_EMP_GREEN

#define COL_EMP_GREEN   0x40

◆ COL_EMP_NORMAL

#define COL_EMP_NORMAL   0x00

◆ COL_EMP_RED

#define COL_EMP_RED   0x20

◆ high_byte

#define high_byte (   a)    *((char *)&a + 1)

◆ low_byte

#define low_byte (   a)    *((char *)&a)

Function Documentation

◆ color_emphasis()

void color_emphasis ( char  color)

◆ get_frame_count()

char get_frame_count ( void  )

◆ get_pad_new()

char get_pad_new ( char  pad)

◆ seed_rng()

void seed_rng ( void  )

◆ set_data_pointer()

void set_data_pointer ( const void *  data)

◆ set_mt_pointer()

void set_mt_pointer ( const void *  metatiles)

◆ set_music_speed()

void set_music_speed ( char  tempo)

◆ set_scroll_x()

void set_scroll_x ( unsigned  x)

◆ set_scroll_y()

void set_scroll_y ( unsigned  y)

◆ set_vram_buffer()

void set_vram_buffer ( void  )

Variable Documentation

◆ index

char index

◆ len

char len

◆ metatile

char metatile

◆ object2

void* object2

◆ ppu_address

char int ppu_address

◆ scroll

unsigned scroll

◆ to

char to

◆ x

char x

◆ y

unsigned y