|
-
September 11th, 2010, 07:10 AM
#1
INT 13h in Windows
Hello all, this is my first post. Well its silly to ask as it may be the fact that u can't use INT 13h under windows (sorry for being silly). well i intend to read write sectors of ntfs formatted hard-drive (total size 320 GB volume size 70 GB) in pure assembly (plz don't suggest anything about winapi in MASM). well here is what i gave as a first try, and after googling here and thre resort to asking. plz help. Is there any way to make 13h work under windows ?? Or any other way than int 13h, 25h.(Tried both gave me a message of a program is attempting to access hardisk directly, this may be due to a ... blah blah)
Code:
.model small
.stack 100h
.data
buffer db 2048 dup(?)
err_msg db "error occured$"
.code
start:
mov ax, @data
mov ds, ax
mov es, ax
mov ah, 02h
mov al, 01h
mov bx, offset buffer
mov cx, 1
mov dx, 80h
int 13h
mov ah, 4ch
int 21h
end start
Thanx in advance. Regards. And sorry for being stupid.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|