Set Time And Date; Play Music - NEC CP/M-86 System Reference Manual

Advanced personal computer
Table of Contents

Advertisement

Advanced BIOS Functions
Year
=
00-99
BCD
Month
=
1-12
Hex
Day of Week
=
1-7
Hex
(I-Sun, 2-Mon, etc.)
Set Time And Date
ENTRY
CL: 01H
DS:DX Data
Buffer Address
Day
=
1-31
Hour
=
0-23
Minute
=
0-59
Second
=
0-59
BCD
BCD
BCD
BCD
RETURN
EXT FUNC 1
SET
TIME AND DATE
The Set Time and Date function sets the system time and date. The buffer addressed
by registers DS and DX must contain the time and date. The I/O data buffer format
is the same as that used by extended function 0, Get Time and Date.
Play Music
ENTRY
CL: 02H
AX: Buffer
length
DS:DX: Data
Buffer Address
RETURN
EXT FUNC 2
PLAY MUSIC
The Play Music function plays music on the APC. The I/O buffer addressed by
registers DS and DX consists of melody data. Register AX is set to the I/O buffer
length in bytes. Melody data consists of two types of information: control com-
mands and scale data. Control Commands set the loudness and speed. Scale data
refer to notes, duration, and accent.
Control data is written in the following format.
[M[n]] [T[n]]
6-11

Advertisement

Table of Contents
loading

Table of Contents