Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NASM __i686.get_pc_thunk



sorry,
it was really difficult to find, but i finally found what i needed to know :)
nasm sucks :D

mov	ebx,0
mov	eax,1
int 0x80

+ (je sors)

On 8/2/07, mm w <email@hidden> wrote:
> -------------------- lp.asm --------------------
> global  _main
> extern  _printf
>
>         section .text
> _main:
>         push    say
>         call    _printf
>         add     esp, 4
>         ret
> say:
>         db      'Lupus Magnus', 10, 0
>
> -------------------- lp.asm --------------------
>
> ----------------------------------------------------
> $> nasm -f macho -o lp_nasm.o lp.asm
> $> nm lp_nasm.o
> 00000000 T _main
>                     U _printf
> 00000011  t say
> ----------------------------------------------------
>
> did i miss something ?
>
> +
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden

References: 
 >NASM __i686.get_pc_thunk (From: "mm w" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.