SOUNDCHIP SFG-01 MBIOS

From MSX MUSIC WIKI
Revision as of 07:07, 22 June 2021 by Kumokosi (talk | contribs)
Jump to: navigation, search

Wiki texts encoded by this Wiki writer


SFG01 Music BIOS

Reference Manual v1.0 December 26, 1984 Nippon Gakki Co., Software Development

Introduction

This reference manual is intended to explain the utilization of the "SFG-01" Control Program version 1.0" which resides within the internal 16Kbyte ROM of the "SFG-01".

Chapter I Outline

1-1 Program Configuration

1-2 Design Concept

The MBIOS was designed with the following main concepts in mind.

First, MBIOS users should not have to worry directly about the hardware. The controls of the built-in FM sound chip, and that of midi interface, are all carried out by the MBIOS, freeing the user from this task.

Second, the concept of a virtual instrument should be defined in the user's program space. By instrument, we mean the processing system for real-time key-on/key-off requests (events). MBIOS defines the instrument by using an IDB(Instrument Definition Block) that is linked to the built-in FM sound generator IC or MIDI interface as the actual instrumental outputs. Thus (considering event data being input to the instrument), once the instrument is defined, the user can control the FM sound generator IC by manipulating only the event data.

Third, the slot management of the MSX system should be left up to user. This enables a multiple number of slots to be used together with the M-BIOS. In other words, the M-B1OS does not address the slots by itself (with some exceptions). This enables the user to call out the IRQ processing module of the MBIOS by switching the slot to SFG-0 I , even when the interrupt is received at the user's slot.

Fourth, there may be parallel prcessing by service calls. That is, the processes of Keyboard Scanning and Instrument Performance (PLAY), as well as the real-time processes such as event buffer handling for automatic reformance, can run simultaneously by appropriately issuing MBIOS calls in the user's main program or in his interrupt routines.

1-3 Hardware Configuration

1-4 Interface with MSX BASIC

1-5 Versions

Chapter II Basic Functions

2-1 Keyboard, Queue, Musical Instrument, Event

2-2 Major parameters by which the FM sound generator IC creates sounds

2-3 Music Keyboard

2-4 Creation of Automatic Rhythm Patterns

2-5 CSMVocal Synthesis

2-6 Voice Library

2-7 Recording, Playback

Chapter III M-BIOS Interface

3-1 User Interface

3-2 Memory Management

The management of the cartridge slot is left up to the user. For example, assume that 0000h-3FFFh of the BASIC interpreter is mapped in front, and when an interrupt needing MBIOS service just arrives to the system. It is then the user's responsibility to switch the slot so as to map the MBIOS slot in front, then get IRQC service by MBIOS, and finally switch back to the original slot in order to exit from that interrupt.

However, as an exception, when loading/saving into the CMT. upon the CMT service call request. MBIOS switches the slot ( assuming the primary slot#0 for BASIC only) by itself appropriately to appropriate the CMT service provided in the BIOS of BASIC interpreter.

The memory allocation under MBIOS control is as shown in FIG. 3.1. The area from ED00h to F37Fh is a fixed work space for MB.. The area from EC00h to ECFFh is for the MIDB. Other areas such as MB, EVB, RHB, UVL, and the stack area can be allocated anywhere between 8000h (or 4000h when CMT routine is not used) and EC00h.

3-3 Supervisor Call

3-4 IRQ Processing

3-5 TRAP

3-6 Direct Commands by Asscessing MIDB,IDB

Chapter IV M-BIOS Syntax

4-1 I-Call

4-2 R-Call

4-3 K-Call

4-4 P-Call

4-5 S-Call

4-6 M-Call

4-7 TRAP

4-8 MIDB

4-9 IDB

4-10 Voice Data

4-11 UVL

4-12 Setting up information

Chapter Writing Programs

5-1 Program Example

5-2 Supplementary explanation for recording and playback programming

5-3 supplementary explanation for autorhythm generator

5-4 Supplementary information for CMT handling

5-5 M-Monitor usage

5-3 Problems and Solutions