ok im writing a subroutine that reads a single sector from drive A, and the memory buffer is 512bytes
read_sector proc
mov al, 0
mov cl, 1
mov dx,12
mov bx,offset buffer
int 25h
ret
read_sector endp
Printable View
ok im writing a subroutine that reads a single sector from drive A, and the memory buffer is 512bytes
read_sector proc
mov al, 0
mov cl, 1
mov dx,12
mov bx,offset buffer
int 25h
ret
read_sector endp
First, this is the C++ board.
Seems Intel assembly to me, haven't got a lot of experience with that.
Are you related to the nut that posted the java code in another thread? ;)
Anyway, down to your code.... are you using int main() or void main(), I can't seem to find either !! :D
BTW, C++
Hammer, look at this
Or something like that.:DCode:
int main()
{
inline asm
{read_sector proc
mov al, 0
mov cl, 1
mov dx,12
mov bx,offset buffer
int 25h
ret
read_sector endp
};
return 0;
}