Report Cursor Position; Auto Power Off - NEC CP/M-86 System Reference Manual

Advanced personal computer
Table of Contents

Advertisement

Advanced BIOS Functions
Report Cursor Position
ENTRY
CL: 04H
DS:DX: Data
Buffer Address
EXT FUNC 4
REPORT
CURSOR POSITION
RETURN
Buffer: Cursor
Position
The Report Cursor Position function gets the current active position on the console
screen. Registers DS and DX point to the address of the I/O buffer in which the data
is to be stored. The system returns the column and line numbers of the current
position prefixed by the escape (ESC) code in the following format.
E
S
[
PI
,
Pc
R
C
~8
bytes
All characters are returned as ASCII code values.
PI
is the line number (01-25).
Pc
is
the column number (01-80).
Auto Power Off
ENTRY
RETURN
CL: 05H
EXT FUNC 5
APO
The Auto Power Off function turns off the power of the machine. When the function
is called, the system waits approximately five seconds before turning off the power.
To turn the system back on, remove any diskettes in the drives, turn the power
switch off, then turn it back on.
6-17

Advertisement

Table of Contents
loading

Table of Contents