1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
kvisc/vm/dv/DISKDEV
julianb0 7a4324f12d
fs
2019-08-05 14:56:22 +02:00

30 lines
1.0 KiB
Plaintext

# 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
For both slot #16 and slot #17:
- rax = number of bytes written (0 = no files found)
- rcx = number of bytes in file
- rdx = 0 if file, 1 if directory
18-21 - - - - (reserved) (reserved)
25 p - - - open
- open file whose name is stored in string *ax0
- rax = -1 if couldn't open file, rax = file handle otherwise
26 i - - - close closes file with handle #ax0