Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > file io in nasm
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 4528 of 4825
Post > Topic >>

file io in nasm

by Karl <spamtrap@[EMAIL PROTECTED] > Feb 17, 2008 at 12:04 PM

I need to open two files and compare byte by byte each file. I was
wondering, once I have the file descriptor in eax after I've opened
the file, what is the best way to access the file? I mean, how do I
use the fd?

section .data
f1:     db      "filename",0


        xor     ecx, ecx        ; 0 RD_ONLY
        lea     ebx, f1
        mov   al, 0x5           ;open syscall
        int     0x80

Is the fd just a pointer to the file in memory? Can I just use the fd
as an offset to cycle through the files contents??
 




 4 Posts in Topic:
file io in nasm
Karl <spamtrap@[EMAIL  2008-02-17 12:04:56 
Re: [Clax86list] file io in nasm
Charles Crayne <spamt  2008-02-17 13:42:29 
Re: file io in nasm
Frank Kotler <spamtra  2008-02-18 00:28:40 
Re: file io in nasm
Hans Mull <spamtrap@[  2008-02-18 16:47:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 11:20:46 CDT 2008.