NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on October 28, 2008, 12:53:21 PM

Title: How can I read it?
Post by: nobody on October 28, 2008, 12:53:21 PM
mov ah, 2
mov al, 1 ; How many?
mov ch, 0 ; Cylinder
mov cl, 2 ; Sector
mov dh, 0 ; Head
mov dl, 0 ; Drive
int 0x13
----------------------------------------------
This reads 2th sector of Floppy.

If HDD, the following is the code?
(I wish to read 64th sector of HDD.)

mov ah, 2
mov al, 1
mov ch, 0
mov cl, 64
mov dh, 0
mov dl, 80
int 0x13