Modules/device/pac

From MSX Game Library

Revision as of 19:08, 14 January 2024 by Aoineko (talk | contribs) (Created page with "{{MODULE |name=device/pac |category=Device |image=raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_pac.png |dependency1= |dependency2= |dependency3= |samp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< 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