Difference between revisions of "Modules/dos"

From MSX Game Library

< Modules

(Created page with "{{MODULE |name=dos |category=Core |dependency1= |dependency2= |dependency3= |sample1=s_dos |sample2=s_dos2 |sample3= }}")
 
(No difference)

Latest revision as of 00:38, 5 January 2024

dos

Code: dos.h

Category: Core

Dependencies: None

Samples:

The dos module provides access to the functionality of MSX-DOS 1 or 2.

You can found the complete list of MSX-DOS functions on the MSX-DOS 2 Program Interface Specification on the MSX Assembly Page site.

Usage

To use this module, include "dos.h" in your source code, and add "dos" to the modules list (LibModules) in your project's configuration file (project_config.js).

This module simply wraps the MSX-DOS routines. For its use, please refer to the documents describing MSX-DOS features:

Note: Not all MSX-DOS routines have function in this module to encapsulate them in C. If you want certain functions to be added, please ask on the MSXgl's Discord Logo.png Discord server.

Samples

See module use cases in the sample programs:

Settings

Library configuration (msxgl_config.h):

#define DOS_USE_FCB					TRUE	// Add support for file managment features through FCB structure
#define DOS_USE_HANDLE				TRUE	// Add support for file managment features through file handle
#define DOS_USE_UTILITIES			TRUE	// Add support for file managment features through filename
#define DOS_USE_VALIDATOR			TRUE	// Add support for last error backup and return value validation

Dependencies

Dependency on other modules: None

Documentation