wenn wrote:hello guys i have few doubts from int 10 and reading sector from usb
i)int 10h
Code: Select all
int 10
AH = 0E
AL = ASCII character to write
BH = page number (text modes)
BL = foreground pixel color (graphics modes)
As you can see what is page number(in BH register) and what do they exactly mean by graphics mode(BL) i mean should i set any register to make use of graphics mode(Sorry i didn't learn the graphics tutorial's but i will once i get a grip at the basics)
I don't really know about BH here (don't have my bootloader source at hand)
BL is the foreground pixel color in graphical
text modes, which is the colorful text mode the XP installer, for example starts in.
wenn wrote:
ii)OK the tutorials say we can use int 13h to read/reset the floppy disk etc but how can i read sectors from USB because i am testing the code with an USB drive
Are you using a USB floppy drive, or USB-stick?
If the BIOS is set up to emulate a USB-stick as a floppy, I guess normal floppy operations will work.
And as far as I know, a USB floppy drive is picked up by the BIOS as what it is: a floppy drive