Modules/device/pac
From MSX Game Library
< Modules
device/pac
The device/pac module provides access to the SRAM of PAC or compatible cartridges (such as FM-PAC) for reading or writing data. PAC cartridges were used to store saves for MSX games.
Compatible cartridges:
- Panasoft PAC (MSX Resource Center)
- Panasoft FM-PAC (MSX Resource Center)
Usage
To use this module, include "device/pac.h" in your source code, and add "device/pac" to the modules list (LibModules) in your project's configuration file (project_config.js).
Samples
See module use cases in the sample programs:
Settings
Library configuration (msxgl_config.h):
#define PAC_USE_SIGNATURE TRUE // Handle application signature to validate saved data #define PAC_USE_VALIDATOR TRUE // Add code to validate input parameters #define PAC_DEVICE_MAX 4 // Maximum number of supported PAC devices // SRAM access method // - PAC_ACCESS_DIRECT ............ Direct access to SRAM (must be selected in page 1) // - PAC_ACCESS_BIOS .............. Access through BIOS routines // - PAC_ACCESS_SWITCH_BIOS ....... Access through BIOS routines with BIOS switched in // - PAC_ACCESS_SYSTEM ............ Access through MSXgl routine (no need BIOS) #define PAC_ACCESS PAC_ACCESS_BIOS
Dependencies
Dependency on other modules: None
Documentation