evolutions
12-09-2003, 06:21 PM
(this is being wrote with linux and run with a linux gnu compiler)
i'm trying to write a small program that displys a 256 X256 ppm image file in x86(gnu gas) assembly language but i just need to know how to write to a file i have this for opening a file do i just admend this a little or write another small section simular for writing to the file
if i need to post more than this i can
movl $filename,%ebx #command for opening a file
mov1 $01101,%ecx
mov1 $0660,%edx
mov1 $5,%eax
int $0x80
mov1 %eax,fd #end of openingfile commands
i'm trying to write a small program that displys a 256 X256 ppm image file in x86(gnu gas) assembly language but i just need to know how to write to a file i have this for opening a file do i just admend this a little or write another small section simular for writing to the file
if i need to post more than this i can
movl $filename,%ebx #command for opening a file
mov1 $01101,%ecx
mov1 $0660,%edx
mov1 $5,%eax
int $0x80
mov1 %eax,fd #end of openingfile commands