link c/asm

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.
User avatar
Velko
Member
Member
Posts: 153
Joined: Fri Oct 03, 2008 4:13 am
Location: Ogre, Latvia, EU

Re: link c/asm

Post by Velko »

Funny, though, OP's problem has nothing to do with C. It's the ASM part which does not link.
If something looks overcomplicated, most likely it is.
lama
Member
Member
Posts: 83
Joined: Thu Apr 16, 2009 8:41 am

Re: link c/asm

Post by lama »

to solar:
thanks man, you are right.i should say more about the problem and definitely pay more attention to posted replies...anyway, i setuped that gcc cc, and (at least) linked those files together.it looks great at first look ... at 0 is 66 b8 10 00- mov ax, 10 , first line in preps.asm .. those two lines in pstst.c are somewhere behind compiled preps.asm surrounded by a lots of code - i dont know where it came from .. , so this hole thing is big as hell - over 128 MB. what am i done wrong this time?if you have still patience with me..
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: link c/asm

Post by Solar »

Try following the Bare bones tutorial, and then extend that by your ASM code. That gives you a running start.
Every good solution is obvious once you've found it.
Post Reply