how to call main from assembly language

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
abhishek srivastava

how to call main from assembly language

Post by abhishek srivastava »

hello
i would like to know how to call main()from assembly language routine.my boot up code will
be written in assembly and my main kernel in c.so i
will have to mix them.
thank you
abhishek srivastava
Jace

RE:how to call main from assembly language 

Post by Jace »

jmp _main

>On 2001-12-01 04:09:09, abhishek srivastava wrote:
>hello
> i would like to know how to call main()from assembly language routine.my boot up code will
>be written in assembly and my main kernel in c.so i
>will have to mix them.
>thank you
> abhishek srivastava
Chris Giese

RE:how to call main from assembly language 

Post by Chris Giese »

>On 2001-12-01 04:09:09, abhishek srivastava wrote:
> i would like to know how to call main()from assembly language routine.my boot up code will
>be written in assembly and my main kernel in c.so i
>will have to mix them.

http://www.execpc.com/~geezer/osd/libc/index.htm#asm
Post Reply