Get Time And Date; Extended Function Calls - NEC CP/M-86 System Reference Manual

Advanced personal computer
Table of Contents

Advertisement

Advanced BIOS Functions
6-10
Table 6-2 Extended Function Calls
F#
RESULT
0
Get Time and Date
1
Set Time and Date
2
Play Music
3
Sound Beep
4
Report Cursor Position (With ESC)
5
Automatic Power Off (APO)
6
Initialize Keyboard FIFO Buffer
7
Direct CRT I/O (DMA Transfer)
8
Write CMOS
9
Read CMOS
10
Initialize RS 232C
Each of the extended CBIOS functions is described in detail in the following section
of this chapter.
Get Time And Date
ENTRY
CL: OOH
DS:DX: Data
Buffer Address
EXT FUNCO
GET
TIME AND DATE
RETURN
Buffer: Time and Date
The Get Time and Date function returns the system time and date. Registers DS and
DX hold the address of the I/O data buffer in which the data is to be stored. The
system fills the data buffer at the indicated address in the following format.
Year
Month IDay of Week*
Day
Hour
Minute
Second
<----------1 byte--------->
* - Month and Day of Week are each half byte values.

Advertisement

Table of Contents
loading

Table of Contents