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
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 !!
BTW, C++
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Hammer, look at this
Or something like that.Code: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; }