|
PVSnesLib
4.6.0
Documentation to code in C or ASM for the Nintendo SNES
|
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 | |
| void | scoreClear (scoMemory *source) |
| clear a score memory | |
| u8 | scoreCmp (scoMemory *source, scoMemory *dest) |
| compare a score memory to another score memory | |
| void | scoreCpy (scoMemory *source, scoMemory *dest) |
| copy a score memory to another score memory | |
| void | scoreSub (scoMemory *source, u16 value) |
| substract a value to a score memory | |
| void | scoreToStr (scoMemory *source, char *buf) |
| convert a score memory into a string | |
Wrapper functions for score management.
| void scoreAdd | ( | scoMemory * | source, |
| u16 | value | ||
| ) |
add a value to a score memory
| source | the source to clear from |
| value | the value to add |
| void scoreClear | ( | scoMemory * | source | ) |
clear a score memory
| source | the source to clear from |
| u8 scoreCmp | ( | scoMemory * | source, |
| scoMemory * | dest | ||
| ) |
compare a score memory to another score memory
| source | the source to compare from |
| dest | the destination to compare to |
| void scoreCpy | ( | scoMemory * | source, |
| scoMemory * | dest | ||
| ) |
copy a score memory to another score memory
| source | the source to copy from |
| dest | the destination to copy to |
| void scoreSub | ( | scoMemory * | source, |
| u16 | value | ||
| ) |
substract a value to a score memory
| source | the source to clear from |
| value | the value to add |
| void scoreToStr | ( | scoMemory * | source, |
| char * | buf | ||
| ) |
convert a score memory into a string
| source | the score to convert |
| buf | the destination string |
String version of scrore will be 00000000 with first digit of hi score and then lo score