Dont know how to compile 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.
Post Reply
bgpros6
Posts: 7
Joined: Wed Jul 04, 2007 9:00 pm

Dont know how to compile asm

Post by bgpros6 »

I've read through MenuetOS Source code and i changed over half of it but now when it comes to compiling i dont know how to compile all source to one. PLEASE Help Thx
vhg119
Member
Member
Posts: 71
Joined: Fri Aug 24, 2007 5:56 pm
Location: CA, USA

Post by vhg119 »

Can't you just use the Makefile? Or, did you modify so much of it that the Makefile is no longer relevant?
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

So you're proficiently skilled in x86 assembly but lack the skills to use an assembler?

I'm not at all convinced... ;)

Anyway, Google "fasm"... 8)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
bgpros6
Posts: 7
Joined: Wed Jul 04, 2007 9:00 pm

Post by bgpros6 »

All the source code did not come with the makefile at all it was just the source.
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Post by neon »

bgpros6 wrote:All the source code did not come with the makefile at all it was just the source.
If possible, make one to link all sources ;)
exkor
Member
Member
Posts: 111
Joined: Wed May 23, 2007 9:38 pm

Post by exkor »

If you are talking about kernel then there is one file that you need to open and compile with Fasmw (in Windows).
If you are talking about apps then you'll have to open each file with Fasmw and compile it separately or make .bat file in Windows(alternative to makefile in Linux).
If you decide to go with .bat then you should use 'fasm' program probably not 'fasmw'
I was taking about latest 32bit version

As you can see there are lots of IFs that you need to clarify. But hopefully you can do it on your own now.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

With fasm most program just use one main file, with the rest has include files, has exkor said.

To assemble menuetOS you would do this:
c:\fasm KERNEL.ASM KERNEL.MNT

Or you could just click on the build.bat
Post Reply