kvisc/vm/dv/DISKDEV

29 lines
1015 B
Plaintext
Raw Normal View History

2019-06-26 21:25:59 +02:00
# The OS/K Team licenses this file to you under the MIT license.
# See the LICENSE file in the project root for more information.
Disk device function slots:
slot ax0 ax1 ax2 thr name desc
0 - - - - ispresent rax = is disk present?
1 - - - - isready rax = is disk ready?
2-15 - - - - (reserved) (reserved)
16 p i - - firstfile
- write name of first file on disk in #ax1-sized buffer #ax0
17 p i - - findnext
- write name of next file on disk in #ax1-sized buffer #ax0
2019-07-01 13:16:17 +02:00
For both slot #16 and slot #17:
2019-06-26 21:25:59 +02:00
- rax = number of bytes written (0 = no files found)
2019-07-01 13:16:17 +02:00
- rdx = number of bytes in file
2019-06-26 21:25:59 +02:00
2019-07-10 17:17:45 +02:00
18-21 - - - - (reserved) (reserved)
2019-06-26 21:25:59 +02:00
2019-07-10 17:17:45 +02:00
25 p i - - open
- open file whose name is stored in string *ax0
2019-06-26 21:25:59 +02:00
- rax = -1 if couldn't open file, rax = file handle otherwise
2019-07-10 17:17:45 +02:00
26 i - - - close closes file with handle #ax0
2019-06-26 21:25:59 +02:00