Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Nov 1998 14:49:42 -0500
From:      "David E. Cross" <crossd@cs.rpi.edu>
To:        Robert Nordier <rnordier@nordier.com>
Cc:        Ruslan Ermilov <ru@ucb.crimea.ua>, hackers@FreeBSD.ORG
Subject:   Re: FreeBSD on i386 memory model
Message-ID:  <Pine.SGI.4.05.9811131447590.6396-100000@o2.cs.rpi.edu>
In-Reply-To: <199811131930.VAA12575@ceia.nordier.com>

next in thread | previous in thread | raw e-mail | index | archive | help

That is great.  Could you sprinkle a comment or 2 as to what it is doing?

ie, I am not sure what the 'call .+0x5' and 'lcall $0x7,0x0' do.

On Fri, 13 Nov 1998, Robert Nordier wrote:

> FWIW, here's a small standalone i386 assembler program:
> 
> 	main:   call .+0x5
> 	        popl %ebp
> 	        subl $0x5,%ebp
> 	        pushl $msg.1-msg
> 	        leal msg-main(%ebp),%eax
> 	        pushl %eax
> 	        pushl $0x1
> 	        movl $0x4,%eax
> 	        call .+0x5
> 	        lcall $0x7,$0x0
> 	        pushl $0x0
> 	        movl $0x1,%eax
> 	        call .+0x5
> 	        lcall $0x7,$0x0
> 	msg:    .ascii "hello, world!\n"
> 	msg.1:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.4.05.9811131447590.6396-100000>