flat assembler
Message board for the users of flat assembler.

Index > Main > Arrays on Fasm :S:S:S

Author
Thread Post new topic Reply to topic
Thaorius



Joined: 27 Jul 2006
Posts: 42
Thaorius
Hi!

Wow, I want to make some application that use pipes on linux, for that porpouse exists the syscall sys_pipe, wich takes an ARRAY of 2 elements and store's on it 2 file descriptors(1 for reading and 1 for writing). So that's the question, how do i create the array and pass it to the function sys_pipe?

Thanks for answer me.
Post 03 Aug 2006, 02:45
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
RedGhost



Joined: 18 May 2005
Posts: 443
Location: BC, Canada
RedGhost
You want an array of two dwords as I understand it?

Code:
array rd 2
...

push array ;pass address of array
    


It is explained in the FASM manual.

_________________
redghost.ca
Post 03 Aug 2006, 05:48
View user's profile Send private message AIM Address MSN Messenger Reply with quote
Thaorius



Joined: 27 Jul 2006
Posts: 42
Thaorius
There are 2 int, i guess they don't have the same size, have they? And is not just passing the array, i have to work with it, once it has returned from the function.

I Will look at the manual.

Thanks
Post 03 Aug 2006, 15:02
View user's profile Send private message Visit poster's website MSN Messenger 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.