|
PVSnesLib
4.6.0
Documentation to code in C or ASM for the Nintendo SNES
|
snes generic console support. More...
#include <snes/snestypes.h>#include <snes/background.h>#include <snes/dma.h>#include <snes/input.h>#include <snes/interrupt.h>#include <snes/sprite.h>#include <snes/sound.h>#include <snes/video.h>Go to the source code of this file.
Macros | |
| #define | RAND_MAX 65535 |
| 65535 is maximum number for randomizd numbers | |
Functions | |
| void | consoleCopySram (u8 *source, u16 size) |
| Send data to SRAM. | |
| void | consoleCopySramWithOffset (u8 *source, u16 size, u16 offset) |
| Send data to SRAM with offset. | |
| void | consoleInit (void) |
| Initialize console. | |
| void | consoleLoadSram (u8 *dest, u16 size) |
| Load data from SRAM. | |
| void | consoleLoadSramWithOffset (u8 *dest, u16 size, u16 offset) |
| Load data from SRAM with offset. | |
| void | consoleMesenBreakpoint (void) |
| Execute the special WDM opcode which Mesen can break on. | |
| void | consoleNocashMessage (char *fmt,...) |
| Send a message to the no$sns debug window. | |
| u16 | consoleRegionIsOK (void) |
| Check compatibility between console (NTSC/PAL) and cartridge (country) | |
| u16 | rand (void) |
| return a randomized number | |
| void | srand (u16 seed) |
| initialize the seed for random numbers | |
snes generic console support.
| void consoleCopySram | ( | u8 * | source, |
| u16 | size | ||
| ) |
Send data to SRAM.
| source | the source to copy from |
| size | the size in bytes of the data to copy. |
| void consoleCopySramWithOffset | ( | u8 * | source, |
| u16 | size, | ||
| u16 | offset | ||
| ) |
Send data to SRAM with offset.
| source | the source to copy from |
| size | the size in bytes of the data to copy. |
| offset | the offset in bytes where the data should be copied |
| consoleInit | ( | void | ) |
Initialize console.
Generic init for SNES console.
| void consoleLoadSram | ( | u8 * | dest, |
| u16 | size | ||
| ) |
Load data from SRAM.
| dest | the destination to load into |
| size | the size in bytes of the data to copy. |
| void consoleLoadSramWithOffset | ( | u8 * | dest, |
| u16 | size, | ||
| u16 | offset | ||
| ) |
Load data from SRAM with offset.
| dest | the destination to load into |
| size | the size in bytes of the data to copy. |
| offset | the offset from which the data should be loaded |
| void consoleNocashMessage | ( | char * | fmt, |
| ... | |||
| ) |
Send a message to the no$sns debug window.
| fmt | The Format string (see printf() documentation in your local C tutorial) |
| consoleRegionIsOK | ( | void | ) |
Check compatibility between console (NTSC/PAL) and cartridge (country)
Check if console (PAL / NSTC) is the same as cartrdige region code
| rand | ( | void | ) |
return a randomized number
| srand | ( | u16 | seed | ) |
initialize the seed for random numbers
| seed | a number between 1 and 65535 |