Changes

TRACKERS MOONBLASTER EN 08

1,368 bytes added, 20:58, 6 March 2018
Use in BASIC
:CALL MBVER Displays the current version number of the BASIC driver on the screen. In addition, various memory addresses can also be read by the BASIC programmer: PEEK (& HDA00) = Set sound chip with MBCHIP command. PEEK (& HDA01) = Status: 0 = does not play, 255 = does play. PEEK (& HDA02) = Set memory bank with MBBANK command. PEEK (& HDA03) + 256 * PEEK (& HDA04> = Set memory address with MBADDR command. To ensure that the commands are working properly, there is a sample program on the Music Disk under the name "BASIC.BAS." In this program, all commands will be used with the exception of the MBVER command.
 
[en]8.2=== Use in machine language ===
 
There are two source codes for the machine language programmers on the Music disk. These are MBPLAY.SRC and MBLOADER.SRC. The first of the two is the actual play routine and the second is a program to load the MoonBIaster songs and drum kits and to see which sound chips are present in the computer and to initialise them if necessary. The sources are written for the DevPac-80 assembler (GEN80), but can also be easily loaded into other assemblers. Some labels are used in all sources. Here, of course, the same memory? address, so when merging these must be removed. Some brief remarks that are of interest to ML programmers:
 
:- The song can remain stored in memory. Decrunching occurs during playback.
:- The start address of the song and the memory mapper bank can be set. The play routine itself ensures that the switching of banks is correct.
:- If PSG drums are used, only PSG channel A will be used for this. It is clearly indicated where the PSG is controlled so that dil can easily be changed.
:- The play routine works under both Z80 and R800 modes, but it is allowed can not be changed while playing the song of processor! AT THE STRMUS routine! looked at which processor is active at that moment and if necessary adjust the play routine automatically. Other explanations are stated in the sources themselves.