flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > int13h floppy and drive emulation. |
Author |
|
edfed 18 Nov 2010, 16:57
last night, i coded an emulation of floppy and hard disk using DOS files.
it works for floppy at c:/fd0.bin, i have tested it on 2 of my old applications that used the floppy, it works fine, pretty usefull to replace the old dead floppy drives i have. basical useage: Code: org 100h ; and maybe any dos compatible header call int13h.new ; ; ...your code here ; call int13h.old ; ; ... exit program ; include '/floppyemul/int13h.inc' it is in order to debug int13h useage without accessing to real hardware. my floppy drives are dead, then, it can be interesting to play with an image file, and that will be faster than a real floppy, of course. there can be other bugs but i didn't detect any fo the moment. all that this "virtual driver" can do is bring a dos file as a drive image in place of a bios disk image, by installing over the original int13h, it will test for a drive number, then, if it is not the virtual drive number (drive 0 in this code) it will call the normal int13h handler. if it is the virtual drive, it will read, write and get drive parameters from a file. the file is fd0.inc, and should be located in c:/ the ideal would be first to be able to create this file from the driver if it don't exist. about hdd emulation, i don't have positive results, it simply ignore the drive id step... then for hd drives it don't works.
|
|||||||||||||||||||||
18 Nov 2010, 16:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.