Re: Freebsd Asm

2005-03-10 Thread Ryan Sommers
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

Re: Freebsd Asm

2005-03-10 Thread Joseph Koshy
> 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

Freebsd Asm

2005-03-10 Thread klowd9 -
Dear all, I am new to developing in freebsd. I was looking for any help with freebsd nasm. Any include files, defines, etc.. 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

Re: freebsd asm

2004-06-16 Thread Peter Pentchev
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 > > >

Re: freebsd asm

2004-06-16 Thread Wes Peters
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

Re: freebsd asm

2004-06-14 Thread José Nicolás Castellano
- 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

Re: freebsd asm

2004-06-14 Thread ari edelkind
[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

Re: freebsd asm

2004-06-14 Thread Peter Pentchev
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: >

freebsd asm

2004-06-14 Thread José Nicolás Castellano
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: [demon]~$ uname -a FreeBSD demon.noconname.org 5.2.1-RELEASE-p4 FreeBSD 5.2.1-RELEASE-p4

Re: FreeBSD asm problem

2001-03-13 Thread diman
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)

Re: FreeBSD asm problem

2001-03-13 Thread milunovic
-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

Re: FreeBSD asm problem

2001-03-13 Thread Nickolay A. Kritsky
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-

Re: FreeBSD asm problem

2001-03-13 Thread Jake Burkholder
> 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

FreeBSD asm problem

2001-03-13 Thread Nickolay A. Kritsky
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 int 80h hlt ; i