Search code examples
assemblyvirtualboxinterruptx86-16bios

Concrete and useful example of Int 13H AH=00h


Can I have a concrete and useful example of Int 13H AH=00h. An example coded in nasm on a processor operating in 16 BITS mode so that I can understand in practice, Int 13H AH=00h must have an influence on the code, if I delete it it causes an error or a change.

I use an img floppy disk on virtualbox and I am on boot sector.

I understood the theory: Int 13H AH=00h RESET DISK SYSTEM Forces controller to recalibrate drive heads (seek to track 0).

I want to go further than theory and understand with example code with real use for Int 13H AH=00h.

The tutorial that I am following uses Int 13H AH=00h but it has no impact on the code, it is of no use, on the contrary I need a practical example with real usefulness and impact for Int 13H AH=00h


Solution

  • Int 13H AH=00h is useless on a virtual machine like VirtualBox as this documentation says

    If Int 13H AH=00h is used outside VM later, it is relevant to leave it.

    It's impossible to have a concrete and useful example with a real impact on the code of Int 13H AH=00h on a virtual machine. No working example on google, stackoverflow, chatgpt

    With the advent of SSD drives, the function no longer really has any use, and especially since int 0x13 is no longer used in a modern OS using UEFI where real mode BIOS functions remain present for backwards compatibility.