Relative Content

Tag Archive for assemblyx86bootloader

How does this piece of code from an x86 bootloader that reads a FAT12 disk work?

x86 BIOS Interrupt 13,2
According to the image, the DL register has to contain a specific value in order to know what drive number to read from, however, in the following code (using intel syntax), we are instead moving the dl register into the value of the ebr_drive_number (that we defined above), instead of the other way around. How then is it able to function correctly, as I am able to read data from the disk.