On Sun, 25 Jan 2004, Matthew Wilson wrote: > On Sun, Jan 25, 2004 at 04:10:41PM +0000, Ged Haywood wrote: > > Of course if you have a Linux box you probably have a very much better > > assembler than MASM on the box already, and there are certainly free > > ones that you can download. > > I'm taking a class in assembly programming where all the assignments > have to be written in MASM syntax. I couldn't find a linux assembler > that couldn't work on MASM syntax, but that might be because I know so > very little about the subject that I may have overlooked it. > > Is there a linux assembler that can handle MASM syntax?
no, there isn't. There is intel_syntax in gas and NASM which can be quite close but there are important differences. Also asm code for DOS will be very different to asm code for Linux as far as interfacing with the hardware and OS (or BIOS) goes. if the book is easy to find (it was at the local Borders here) you could have a look at Jeff Duntemann's "Assembly Language Step By Step" which tells you a bit about the differences and what's available. http://www.duntemann.com/assembly.htm reviews are mixed though. As to masm in dosemu, this will generally work, and may be more comfortable than real DOS since it can only crash the virtual machine. However direct hardware access, IRQs and so on (one of the reasons ASM is still used is for these things, where C can be too cumbersome) DOSEMU can be quite tricky, depending on how well it emulates the hardware or how you configure it. Bart - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
