CROMEMCO Series 2 CDOS系统指令手册说明书

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
E = mask
Options
bit 0 = CNTRL-P flag
bit 1 = read after write bit 2 = ESCape key use as carriage return bit 3 = do not echo carriage return bit 6 = do not ech factor
1 2
HL = dividend DE = divisor
A = -1 (FFH) if error; else execute at 100H
DE = product
HL = quotient
DE = remainder
139 (8BH) HOME DRIVE 140 (8CH) EJECT DISKETTE
Entry Parameters
BDE==dbrilvoeck
number number
B bit 7 set if
interleaved
B bit 6 set
indicates block
number is in
HLDE reg pairs
DE = block number B = drive number
for next program
code
DE = FCB address
none
B = new attributes
149 (95H) READ DISK LABEL DE = FCB address
none
150 ( 96H) TURN MOTORS OFF none
none
151 ( 97H) SET BOTTOM OF COOS IN RAI"1
E = high byte of
none
address of bottom
of COOS
152 (98H) READ CURRENT RECORD
DE = FCB address
A = 0 if OK
A = 1 if end of file
A = 2 if tried to read
unwritten records
B = drive number
E = drive number
none none
141 (8DH) GET VERSION OF none OPERATING SYSTEM
B = version-number C = release-number
142 (8EH) SET SPECIAL CRT FUNCTION
A = seconds B = minutes C = hours (24 hr. time)
147 ( 93H) SET PROGRAlvl RETURN CODE
148 ( 94H) SET FILE ATTRIBUTES
E = return code
A = previously set return
D = column address/ none
special function
E = row address/O
143 (8FH) SET DATE
B = day D = month
E = year-1900
none
144 (90H) READ DATE
none
A = day
B = month
C = year-1900
Number
o
1
2 3 4 5
Function PROGRMl ABORT READ CONSOLE (with echo) WRITE CONSOLE READ READER. WRITE PUNCH WRITE LIST
Entry Parameters none none
E = character
All Rights Reserved
(.
'-- /
Summary of CDOS System Calls
The following is a summary, listing all of the system calls implemented in Series 2 CDOS together with their entry and return parameters. The system calls are listed in order of the number which is loaded into the C register to specify the desired call.
3
Number Function
145 (91H) SET TIME OF DAY
Entry Parameters
Return Parameters
B = seconds
none
o = minutes
E = hours (24 hr. time)
146 (92H) READ TIME OF DAY none
none
A = -1 (FFH) if ready A = 0 if not ready
12 (OCH) DESELECT CURRENT DISK
none
none
13 (ODH) RESET CDOS AND SELECT DRIVE A
14 (OEH) SELECT CURRENT DISK
15 (OFH) OPEN DISK FILE
of if
disk space out of
directory space
22 (16H) CREATE FILE
DE = FCB address
A = directory block
A = -1 (FFH) if out of directory space or file already exists
A = a if OK A = 1 if end of file A = 2 if tried to read
unwritten records
21 (ISH) WRITE NEXT RECORD
DE = FCB address
A A
==
a
1
if if
OK entry
error
A A
==
2 if out -1 (FFH)
if if
illegal illegal
request block
133 (85H) not in use
134 (86H) FORMAT NAME TO FILE CONTROL BLOCK
HL = address of
DE
=
string FCB address
HL = address of
terminator
A = sectors/cluster
128 (80H) READ CONSOLE
none
(with no echo)
A = character
129 (81H) GET USER REGI- none STER POINTER
BC = pointer to user
register pointers
130 (82H) SET USER CNTRL-C ABORT
DE = address of AC
handler (0 to
reset;
-1 to disable)
none
2
Number Function 131 (83H) READ LOGICAL
BLOCK
132 (84H) WRITE LOGICAL BLOCK
IN DIRECTORY
A A
==
directory -1 (FFH)
block if not
found
19 (13H) DELETE FILE
DE = FCB address
A = number of entries
deleted
20 (14H) READ NEXT RECORD
DE = FCB address
B top bit = 1 if
interleaved
Return Parameters
A = 0 if OK
A = 1 if I/O error
A A
==
2 3
if if
illegal illegal
request block
A = 0 if OK
A = 1 if I/O error
A A
==
2 3
9
PRINT BUFFERED
LINE
10 (OAH) INPUT BUFFERED LINE
11 (OBH) TEST CONSOLE READY
none
E = I/O byte DE = buffer address
A = I/O byte
none none
DE = buffer address none
153 (99H) WRITE CURRENT RECORD
DE = FCB address
A = 0 if OK A = 1 if entry error A = 2 1•.J.c. out of disk space A = -1 (FFH) if out of
directory space
154 (9AH) CHECK IF ALLOCATED
CROMEMCO Addendum to the
cnos Instruction Manual
CROMEMCO, INC.
280 Bernardo Avenue Mountain View, CA 94043
Part No. 023-9020
February 1981
Copyright © 1981 CROMEMCO, INC.
DE = FCB address
135 (87H) UPDATE
DE = FCB address
DIRECTORY ENTRY
none
136 (88H) LINK TO PROGRAM DE = FCB address
137 (89H) MULTIPLY INTEGERS
138 (8AH) DIVIDE INTEGERS
1
Number
Function
Entry Parameters
Return Parameters
17 (llH) SEARCH DIRECTORY DE = FCB address
FOR FILENAME
A A
==
directory block -1 (FFH) if not
found
18 (12H) FIND NEXT ENTRY DE = FCB address
none
A = disk drive number
26 (lAH) SET DISK BUFFER DE = buffer address none
27 (lBH) DISK CLUSTER
none
ALLOCATION MAP
BC DE
==
address of bitmap number of clusters
none
E = disk drive no. DE = FCB address
, 16 (lOH) CLOSE DISK FILE DE = FCB address \
none
none
A A
=
=
directory -1 (FFH)
block if not
found
A = directory block A = -1 (FFH) if not found
none
E = character
E = character
Return Parameters
------------~----
none
A = character
(parity bit reset)
none
A = character
none
none
6
not in use
7
GET I/O BYTE
8
SET I/O BYTE
DE = FCB address
A = 0 if allocated A = -1 if not allocated
155 (9BH) not in use 156 (9CH) LIST DIRECTORY
DE = FCB address
none
157 (9DH) SET OPTIONS
o = desired option A = old options
4
Number Function
158 (9EH) DELETE EXTENTS
Entry Parameters
DE = FeB address
159 (9FH) GET MASTER DRIVE
none
Return Parameters
A = 0 if not found A = 1 if found and erased A = master drive B = last drive used in
23 (17H) RENAME FILE
DE = FCB address
A = number of entries
renamed
24 (18H) GET DISK LOG-IN none VECTOR
A = those disks currently
logged-in
25 (19H) CURRENT DISK
相关文档
最新文档