PVSnesLib  4.3.0
Documentation to code in C or ASM for the Nintendo SNES
scores.h File Reference

Wrapper functions for score management. More...

#include <snes/snestypes.h>

Go to the source code of this file.

Functions

void scoreAdd (scoMemory *source, u16 value)
 add a value to a score memory More...
 
void scoreClear (scoMemory *source)
 clear a score memory More...
 
u8 scoreCmp (scoMemory *source, scoMemory *dest)
 compare a score memory to another score memory More...
 
void scoreCpy (scoMemory *source, scoMemory *dest)
 copy a score memory to another score memory More...
 

Detailed Description

Wrapper functions for score management.

Function Documentation

◆ scoreAdd()

void scoreAdd ( scoMemory *  source,
u16  value 
)

add a value to a score memory

Parameters
sourcethe source to clear from
valuethe value to add
Examples
scoring/scoring.c.

◆ scoreClear()

void scoreClear ( scoMemory *  source)

clear a score memory

Parameters
sourcethe source to clear from
Examples
scoring/scoring.c.

◆ scoreCmp()

u8 scoreCmp ( scoMemory *  source,
scoMemory *  dest 
)

compare a score memory to another score memory

Parameters
sourcethe source to compare from
destthe destination to compare to
Returns
0 if equals, 0xFF if source greater than destination, 1 otherwise
Examples
scoring/scoring.c.

◆ scoreCpy()

void scoreCpy ( scoMemory *  source,
scoMemory *  dest 
)

copy a score memory to another score memory

Parameters
sourcethe source to copy from
destthe destination to copy to