Other Associated Functions And Commands - AMSTRAD CPC464 User Manual

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

W1....5 : Pause Time (sec. 1....5)
S is mandatory, and completion of each individual section is also mandatory.
When an <envelope number> is defined, all previous settings are overruled. Specifying an envelope
of either type without any sections will reset the settings of that <envelope number> to zero.

6.13 Other associated functions and commands

SQ(X)
x is the channel number : 1,2 or 4
These values represent the channels A, B, and C respectively. As shown in the ' bit significant' table
of channel status, a parameter of the SOUND command. This is an inquiry into the state of the
SOUND channel nominated.
It is a function returning an answer which is an integer in the range 0.....255. To extract the
information from this number the following bits are
Bit
0... 2
number of free spaces in the queue tested (value 0....4)
Bit
3
rendezvous with channel A showing at head
Bit
4
rendezvous with channel B showing at head
Bit
5
rendezvous with channel C showing at head
Bit
6
hold at head of queue
Bit
7
channel currently playing
Bits 3 to 6 (rendezvous and hold) were described in the channel status section. The only other facility
of this test is to disable the ON SQ GOS UB command described in the next paragraph.
O N S Q G O S U B
ON SQ(y) GOSUB <line number>
y is the channel number : 1,2 or 4
This is an interrupt command that is armed and detects when there is a gap in the SOUND queue
nominated, then fires into the SOUND subroutine. The SQ and SOUND keywords both disarm the
interrupt. The subroutine ends with a RETURN in the normal way. All channels have the same
priority and when there is a space in the nominated channel the command will ' fire' , thus disarming
itself at the same time, Hence the subroutine will need to reset the interrupt, if it is required again.
value range 0....255 (l/l00ths second)
significant
for the data:

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents