NEC CP/M-86 System Reference Manual page 64

Advanced personal computer
Table of Contents

Advertisement

Basic Disk Operating System (BDOS) Functions
4-30
CHAIN TO PROGRAM
ENTRY
RETURN
CL: 2FH
FUNCTION 47
DMA buffer:
Command Line
CHAIN TO PROGRAM
The Chain to Program function provides a means of chaining from one program to
the next without operator intervention. Although there is no passed parameter for
this call, the calling process must place a command line terminated by a null byte in
the default DMA buffer.
Under CP 1M -86 the Chain to Program function releases the memory of the calling
function before executing the command. The command line is parsed and placed in
the Base Page of the new program. The Console Command Processor (CCP) then
executes the command line.
GET SYSTEM DATA AREA ADDRESS
ENTRY
CL: 031H
FUNCTION 49
GETSYSDAT
ADDRESS
RETURN
BX: SYSDAT Address
Offset
ES: SYSDA T Address
Segment
The GET SYSDA T function returns the address of the System Data Area. The
system data area includes the following information.
dmaad
equ
word ptr 0
;user DMA address
dmabase
equ
word ptr 2
;user DMA base
curdsk
equ
byte ptr 4
;current user disk
usr code
equ
byte ptr 5
;current user number
control_p_flag
equ
byte ptr 22
;listing toggle ...
;set by ctrl-p
console _ width
equ
byte ptr 64
printer _ width
equ
byte ptr 65
console_column
equ
byte ptr 66
printer _column
equ
byte ptr 67

Advertisement

Table of Contents
loading

Table of Contents