Shifting all INT13 drive numbers causes problems on systems that use a sparse drive number space (e.g. qemu BIOS, which uses 0xe0 for the CD-ROM drive). The strategy now is: Each drive is assigned a "natural" drive number, being the next available drive number in the system (based on the BIOS drive count). Each drive is accessed using its specified drive number. If the specified drive number is -1, the natural drive number will be used. Accesses to the specified drive number will be delivered to the emulated drive, masking out any preexisting drive using this number. Accesses to the natural drive number, if different, will be remapped to the masked-out drive. The overall upshot is that, for examples: System has no drives. Emulated INT13 drive gets natural number 0x80 and specified number 0x80. Accesses to drive 0x80 go to the emulated drive, and there is no remapping. System has one drive. Emulated INT13 drive gets natural number 0x81 and specified number 0x80. Accesses to drive 0x80 go to the emulated drive. Accesses to drive 0x81 get remapped to the original drive 0x80.tags/v0.9.4
|
|
||
69 |
|
69 |
|
70 |
|
70 |
|
71 |
|
71 |
|
72 |
|
|
|
|
72 |
|
|
73 |
|
73 |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
74 |
|
86 |
|
75 |
|
87 |
|
76 |
|
88 |
|
|
|
||
325 |
|
325 |
|
326 |
|
326 |
|
327 |
|
327 |
|
328 |
|
|
|
329 |
|
328 |
|
330 |
|
329 |
|
331 |
|
330 |
|
332 |
|
331 |
|
333 |
|
|
|
334 |
|
|
|
335 |
|
|
|
336 |
|
|
|
|
332 |
|
|
|
333 |
|
|
|
334 |
|
|
|
335 |
|
|
|
336 |
|
|
|
337 |
|
|
|
338 |
|
|
|
339 |
|
|
|
340 |
|
|
|
341 |
|
|
337 |
|
342 |
|
338 |
|
343 |
|
339 |
|
344 |
|
|
|
||
393 |
|
398 |
|
394 |
|
399 |
|
395 |
|
400 |
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
|
399 |
|
|
|
400 |
|
|
|
401 |
|
|
|
402 |
|
|
|
403 |
|
401 |
|
404 |
|
402 |
|
405 |
|
403 |
|
|
|
||
542 |
|
540 |
|
543 |
|
541 |
|
544 |
|
542 |
|
545 |
|
|
|
|
543 |
|
|
546 |
|
544 |
|
547 |
|
|
|
548 |
|
|
|
549 |
|
|
|
|
545 |
|
|
550 |
|
546 |
|
551 |
|
|
|
552 |
|
|
|
|
547 |
|
|
|
548 |
|
|
|
549 |
|
|
|
550 |
|
|
|
551 |
|
|
|
552 |
|
|
|
553 |
|
|
|
554 |
|
|
|
555 |
|
|
|
556 |
|
|
|
557 |
|
|
|
558 |
|
|
|
559 |
|
|
553 |
|
560 |
|
554 |
|
561 |
|
555 |
|
|
|
556 |
|
|
|
557 |
|
|
|
|
562 |
|
|
|
563 |
|
|
|
564 |
|
|
558 |
|
565 |
|
559 |
|
566 |
|
560 |
|
567 |
|