From 30830e1348f516626aab482b311e741428f411bc Mon Sep 17 00:00:00 2001 From: Polluks Date: Sun, 23 May 2021 10:19:00 +0200 Subject: [PATCH] Added missing Creativision functions --- doc/funcref.sgml | 112 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 2cb8bbf44..792a51741 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -298,6 +298,16 @@ function. +

+ + + + + + + + +

@@ -1659,6 +1669,41 @@ used in presence of a prototype. +bios_playsound

+ + + +/ + +BASIC has a fixed tempo of 18. +The function is only available as fastcall function, so it may only be +used in presence of a prototype. + +, + + +static const unsigned char notes[] = { + 0x77, 0x4F, 0x37, + 0x4B, 0x05, 0xBB, + 0x4F, 0x27, 0x83, + 0x93, 0x9B, 0x93, + 0x17, 0x4F, 0x96, + 0xAB, 0x17, 0x4F, + 0x0E +}; +bios_playsound (notes, sizeof notes); + + + + + bgcolor

@@ -5769,6 +5814,73 @@ be used in presence of a prototype. +psg_delay

+ + + +/ + +The function is only available as fastcall function, so it may only be +used in presence of a prototype. + +, + + + + + +psg_outb

+ + + +/ + +The function is only available as fastcall function, so it may only be +used in presence of a prototype. + +, + + +psg_outb (0x80); // Latch frequency +psg_outb (0x07); // Frequency byte 2 +psg_outb (0x90); // Channel 0 full volume + + + + + +psg_silence

+ + + +/ + + +, + + + + + qsort