Would you like to make this site your homepage? It's fast and easy...
Yes, Please make this my home page!
==================================================================
MikeOS -- The Mike Operating System kernel
FAT12 FLOPPY DISK ROUTINES
==================================================================
os_get_file_list
Generate comma-separated string of files on floppy
- IN/OUT: AX = location to store zero-terminated filename string
Example:
code here
os_filename_convert
Change 'TEST.BIN' into 'TEST BIN' as per FAT12
- IN: SI = filename string
- OUT: DI = converted filename string (carry set if filename invalid)
Example:
code here
os_load_file
Load file into RAM
- IN: AX = location of filename, CX = location in RAM to load file
- OUT: BX = file size (in bytes), carry set if file not found
Example:
code here
os_write_file
Save (max 64K) file to disk
- IN: AX = filename, BX = data location, CX = bytes to write
- OUT: Carry clear if OK, set if failure
Example:
code here
os_file_exists
Check for presence of file on the floppy
- IN: AX = filename location
- OUT: carry clear if found, set if not
Example:
code here
os_create_file
Creates a new 0-byte file on the floppy disk
- IN: AX = location of filename
- OUT: Nothing
Example:
code here
os_remove_file
Deletes the specified file from the filesystem
- IN: AX = location of filename to remove
- OUT: Nothing
Example:
code here
os_rename_file
Change the name of a file on the disk
- IN: AX = filename to change, BX = new filename (zero-terminated strings)
- OUT: carry set on error
Example:
code here
os_get_file_size
Get file size information for specified file
- IN: AX = filename
- OUT: BX = file size in bytes (up to 64K) or carry set if file not found
Example:
code here
==================================================================
INTERNAL OS ROUTINES -- Not accessible to user programs
==================================================================
disk_get_root_entry
Search RAM copy of root dir for file entry
- IN: AX = filename
- OUT: DI = location in disk_buffer of root dir entry,or carry set if file not found
Example:
code here
disk_read_fat
Read FAT entry from floppy into disk_buffer
- IN: Nothing
- OUT: carry set if failure
Example:
code here
disk_write_fat
Save FAT contents from disk_buffer in RAM to disk
- IN: FAT in disk_buffer
- OUT: carry set if failure
Example:
code here
disk_read_root_dir
Get the root directory contents
- IN: Nothing
- OUT: root directory contents in disk_buffer, carry set if error
Example:
code here
disk_write_root_dir
Write root directory contents from disk_buffer to disk
- IN: root dir copy in disk_buffer
- OUT: carry set if error
Example:
code here
disk_convert_l2hts
Calculate head, track and sector for int 13h
- IN: logical sector in AX
- OUT: correct registers for int 13h
Example:
code here
RETURN TO MAIN PAGE