From: Luke D. <cod...@ho...> - 2004-02-07 04:24:02
|
----- Original Message ----- From: "David LeCount" <sna...@ya...> To: <min...@li...> Sent: Saturday, February 07, 2004 5:30 AM Subject: Re: [Mingw-users] Trying to get mingw to work with nasm > Ok, some answers. With Nasm, I'm only making an object > file, so I didn't figure it mattered if it was elf or > something else. I've changed it to win32 and still the > same thing. > > As for interrupts, I'm really making it a dos program. > I can get away with using those interrupts in that > case, can't I? Isn't that how the Dos format command > works? I know I've accessed the video card like that. If you are writing a DOS program, you can't use MinGW because it produces Win32 executables only. You would need to use DJGPP or another compiler for that. If you use DJGPP, it provides functions you can call from C to access interrupts. > And finally, as for not using gas, it uses the AT&T > syntax which is a lot different than the Intel syntax > I've became familiar with. I might as well learn a new > language. I think I'll pass on that. I don't think it is necessary for you to switch assemblers, but for the record gas also supports Intel syntax using the ".intel_syntax" directive. Luke > > I'll keep working on it and let you guys know if I > come up with something. > > --- Earnie Boyd <ea...@us...> wrote: > > David LeCount wrote: > > > > > > > > nasm -f elf format.asm > > > /usr/local/i386-mingw32msvc/bin/gcc -fpack-struct > > > main.c format.o -o format.exe > > > > > > > How about trying the assembler compile with the GCC > > tools? > > > > Earnie |