Author Topic: MASM32 for Ubuntu Linux operating system?  (Read 25787 times)

MIH1406

  • Guest
MASM32 for Ubuntu Linux operating system?
« on: October 02, 2012, 11:44:00 AM »
I have attending a course called Computer Architecture this semester and I found that I have to use MASM.

I am a linux user, I found other programs do the same job for me but in different formats, like: yasm and nasm.

I tried to run MASM32 using WINE but I failed.

Or at least, a masm-like assembler for Ubuntu Linux.

jj2007

  • Member
  • *****
  • Posts: 10547
  • Assembler is fun ;-)
    • MasmBasic
Re: MASM32 for Ubuntu Linux operating system?
« Reply #1 on: October 02, 2012, 12:19:01 PM »
JWasm is a perfect clone of Masm, and runs on Linux. See here for an example.

Vortex

  • Member
  • *****
  • Posts: 2337
Re: MASM32 for Ubuntu Linux operating system?
« Reply #2 on: October 03, 2012, 03:30:56 AM »
Another option is Solar Assembler :

http://oby.ro/sol_asm/index.html

Quote
Multiplatform, runs on:
WIn95, Win98, Windows XP, VISTA, Windows 7 32 and 64 bits
Mac OS X (10.5 leopard),
Unix / Linux and other unix like OSes that can link with an ELF libc
Solar OS

mineiro

  • Guest
Re: MASM32 for Ubuntu Linux operating system?
« Reply #3 on: October 03, 2012, 05:33:43 AM »
hello Sir MIH1406;
after read your post I have tried install masm32v11 under linux and worked.
My command line was after uncompress, inside home user directory:
wineconsole install.exe
Then, it was installed under hidden folder .wine.
If you have troubles, post and I can try to help you, I will not garantee you to solve the problem, but I say to you that I will try from this side of monitor.

I'm currently working with jwasm under linux, but after see that solasm accept it too, I will try it.

mineiro

  • Guest
Re: MASM32 for Ubuntu Linux operating system?
« Reply #4 on: October 03, 2012, 05:48:56 AM »
The easy way that I have found to make it work under linux was:
Ask for a friend to compress masm32 folder and send it to you, so you just need uncompress it under some folder and use wineconsole to do the job.

Remember that have some rules to be followed if you are using masm under linux, because you can only create programs to be microsoft compatible.

Gunther

  • Member
  • *****
  • Posts: 3585
  • Forgive your enemies, but never forget their names
Re: MASM32 for Ubuntu Linux operating system?
« Reply #5 on: October 03, 2012, 08:17:56 AM »
Hi MIH1406,

the best way to run MASM under Linux is the WINE. Also possible is to use GAS with intel_syntax noprefix; that enables the Intel syntax for GAS. The rest is easy. Good luck.

Gunther

Get your facts first, and then you can distort them.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7542
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: MASM32 for Ubuntu Linux operating system?
« Reply #6 on: October 06, 2012, 01:00:48 PM »
I personally don't see why more people don't use GAS with its newer Intel notation. You are no longer bound to that horrible AT&T notation and GAS performs fine. It feels a bit "agricultural" after using MASM but it does have that real assembler [tm] feel and you can use the Linux linker with it. (LD I think).
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

Gunther

  • Member
  • *****
  • Posts: 3585
  • Forgive your enemies, but never forget their names
Re: MASM32 for Ubuntu Linux operating system?
« Reply #7 on: October 06, 2012, 06:42:03 PM »
Steve,

I personally don't see why more people don't use GAS with its newer Intel notation. You are no longer bound to that horrible AT&T notation and GAS performs fine. It feels a bit "agricultural" after using MASM but it does have that real assembler [tm] feel and you can use the Linux linker with it. (LD I think).

yes, that's the point. And yes, the Linux linker is ld.

Gunther
Get your facts first, and then you can distort them.

Vortex

  • Member
  • *****
  • Posts: 2337
Re: MASM32 for Ubuntu Linux operating system?
« Reply #8 on: October 06, 2012, 08:21:20 PM »
The AT&T notation is unusable, that's true. If I am not wrong, FreeBasic is using GAS too.

Gunther

  • Member
  • *****
  • Posts: 3585
  • Forgive your enemies, but never forget their names
Re: MASM32 for Ubuntu Linux operating system?
« Reply #9 on: October 06, 2012, 09:28:08 PM »
Hi Vortex,

you're right: The AT&T syntax needs a large habituation. :icon_cool: The only advantage that I can see is that: the source, destination syntax did help me to master the PowerPC assembly languge, because that boxes have Motorola processors built in.

Gunther
Get your facts first, and then you can distort them.

Lassar

  • Guest
Re: Is gas compatible with masm syntax?
« Reply #10 on: March 01, 2013, 03:12:56 PM »
Question ?

Is gas compatible with masm syntax.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7542
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: MASM32 for Ubuntu Linux operating system?
« Reply #11 on: March 01, 2013, 03:30:32 PM »
Lassar, simple answer is no but GAS will do standard Intel notation if you set that option. To use direct MASM notation you can use JWASM if you have some reason not to use the original Microsoft ML.EXE.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1209
Re: MASM32 for Ubuntu Linux operating system?
« Reply #12 on: March 01, 2013, 05:44:08 PM »
If I am not wrong, FreeBasic is using GAS too.

Yes, the default backend code emitter outputs Intel-syntax GAS code, but there is also a gcc backend in development.
Well Microsoft, here’s another nice mess you’ve gotten us into.

Vortex

  • Member
  • *****
  • Posts: 2337
Re: MASM32 for Ubuntu Linux operating system?
« Reply #13 on: March 02, 2013, 05:42:26 AM »
Hi MichaelW,

Any chance to get a preview of the gcc backend?

goofprog

  • Guest
Re: MASM32 for Ubuntu Linux operating system?
« Reply #14 on: September 15, 2013, 07:48:28 PM »
Try DosBox maybe it works with MASM under linux.