Modules/memory
From MSX Game Library
< Modules
The memory module lets you perform basic memory operations in an optimized way, and also offers advanced features such as dynamic memory allocation management.
Usage
To use this module, include "memory.h" in your source code, and add "memory" 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 MEM_USE_VALIDATOR FALSE // Activate validator to handle invalide input value #define MEM_USE_FASTCOPY FALSE // Add support for fast-copy function (using unrolled-LDI loop) #define MEM_USE_FASTSET FALSE // Add support for fast-set function (using unrolled-LDI loop) #define MEM_USE_DYNAMIC TRUE // Add support for malloc style dynamic allocator
Dependencies
Dependency on other modules: None
Documentation