klowd9 - wrote:
If anyone can share his own files, or give any tips, would be nice.
You aren't going to find many, if any, userland include files for
assembly. The system is designed to be very portable and assembly is not.
My first response, and likely that of anyone else, would be what are you
> I already visited int80h.org and linuxassembly.org and others, And did not
> find any resources or include files..
> If anyone can share his own files, or give any tips, would be nice.
It is straightforward:
The assembly syntax is whatever is supported by gas(1) for
your architecture. 'info ga
On Wed, Jun 16, 2004 at 09:01:02AM -0700, Wes Peters wrote:
> On Monday 14 June 2004 07:04, Peter Pentchev wrote:
> > On Mon, Jun 14, 2004 at 01:59:11PM +0200, Jos? Nicol?s Castellano wrote:
> > > Hello to all,
> > >
> > > I'm proud to join this mailing, having posibilities to learn some new
> > >
On Monday 14 June 2004 07:04, Peter Pentchev wrote:
> On Mon, Jun 14, 2004 at 01:59:11PM +0200, Jos? Nicol?s Castellano wrote:
> > Hello to all,
> >
> > I'm proud to join this mailing, having posibilities to learn some new
> > features of freebsd system.
> >
> > I have to mention i did some tests i
- Original Message -
> ... which doesn't exit, therefore your program accesses memory addresses
> that aren't meant to supply program code, and it crashes.
>
> Freebsd system calls are generally accessed using interrupt vector 0x80.
> The function that deals with this interrupt in the ker
[EMAIL PROTECTED] said this stuff:
[...]
> [demon]~$ cat hello.asm
> %include 'system.inc'
> section .data
> holadb 'Hola', 0Ah
> hbytes equ $-hola
> section .text
> global _start
> _start:
> pushdword hbytes
> pushdword hola
> pushdword stdout
> sys.write
> push
On Mon, Jun 14, 2004 at 01:59:11PM +0200, Jos? Nicol?s Castellano wrote:
> Hello to all,
>
> I'm proud to join this mailing, having posibilities to learn some new
> features of freebsd system.
>
> I have to mention i did some tests in asm from freebsd-devel and i get
> surprised, look at this:
>
ex.S
#include
.globl main
main: popl%eax/* cick ret */
popl%eax/* cick argc */
movl(%esp),%eax /* eax=av */
movl$fname, %ebx/* ebx=fname */
movl%ebx,(%eax)
-BEGIN PGP SIGNED MESSAGE-
On Tue, 13 Mar 2001, Nickolay A. Kritsky wrote:
> Hi all!
> It seems to me that you guys are my last hope, but if i am asking in the
> wrong place - sorry.
>
> I wrote my first asm program for FreeBSD:
>
> section.code
> global _start
> _start:
> pus
Thanks a lot for your help!
Now i see that i have read int80h.org's manual not enough well :( (i'm so
stupid!)
RTFM and again RTFM!
NKritsky - SysAdmin InternetHelp.Ru
http://www.internethelp.ru
e-mail: [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-
> Hi all!
> It seems to me that you guys are my last hope, but if i am asking in the
> wrong place - sorry.
>
> I wrote my first asm program for FreeBSD:
>
> section.code
> global _start
> _start:
> push dword envp
> push dword argvp
> push dword fname
> mov eax,59 ; execve
11 matches
Mail list logo