flat assembler
Message board for the users of flat assembler.

Index > Linux > [SOLVED]File/device R/W pointer...

Author
Thread Post new topic Reply to topic
a16b03



Joined: 24 Jan 2006
Posts: 43
Location: Riga, Latvia
a16b03 02 Dec 2006, 17:24
I would like to know how to change file read/write "pointer" position?

What I'm trying to say is:
example
I write:
AA F0 AF C1 A0
to file.
And suddenly want to change F0 to FF without closing file, and opening it again.
How to do that?
... and how to get "pointer" possition?

I hope you got the point!


Last edited by a16b03 on 02 Dec 2006, 17:44; edited 1 time in total
Post 02 Dec 2006, 17:24
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7103
Location: Slovakia
vid 02 Dec 2006, 17:38
Code:
        mov     edx, [mode]
        mov     ecx, [dist]
        mov     ebx, [handle]
        mov     eax, 19         ;sys_seek
        int     80h
        cmp     eax, -4096
        ja      .error_seek    
Post 02 Dec 2006, 17:38
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
a16b03



Joined: 24 Jan 2006
Posts: 43
Location: Riga, Latvia
a16b03 02 Dec 2006, 17:44
thanks
Post 02 Dec 2006, 17:44
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.