Modules/device/pac

From MSX Game Library

< Modules

device/pac

Code: device/pac.h

Category: Device

Dependencies: None

Samples:

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:

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):

// Supported driver(s)
// - NTAP_DRIVER_MSXGL ............ MSXgl custom driver (based on DM-System2 one)
// - NTAP_DRIVER_GIGAMIX .......... Original Gigamix's DM-System2 driver
// - NTAP_DRIVER_SHINOBI .......... Shinobi Tap driver by Danjovic
#define NTAP_DRIVER			NTAP_DRIVER_MSXGL | NTAP_DRIVER_GIGAMIX | NTAP_DRIVER_SHINOBI
#define NTAP_USE_PREVIOUS	TRUE	// Backup previous data to allow push/release detection

Dependencies

Dependency on other modules: None

Documentation