BleepingComputer.com: best platform to write assembly codes???

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

best platform to write assembly codes???

#1 User is offline   karthic rao 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 1
  • Joined: 04-January 11

Posted 14 February 2011 - 10:13 AM

I have started learning assembly codes for intel based computers ,want to know which among these is the best place to write assembly codes.M.A.S.M , N.A.S.M or GAS assembler from linux???????Please help me out!!

Edit: Moved topic from Tutorials to the more appropriate forum. ~ Animal

#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 14 February 2011 - 01:12 PM

What does 'best' mean to you?
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#3 User is offline   Minh Triet Pham Tran 

  • Member
  • PipPip
  • Find Topics
  • Group: Malware Study Hall Sophomore
  • Posts: 97
  • Joined: 07-January 12
  • Gender:Male

Posted 07 January 2012 - 05:08 PM

It depends on your needs :) .
If you think technology can solve your security problems, then you don't understand the problems and you don't understand the technology. — Bruce Schneier

#4 User is offline   DavidWJ 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 12
  • Joined: 19-February 12
  • Gender:Male

Posted 20 February 2012 - 02:25 AM

There is NO best.. Both products mentioned are very good. That's like what is the best html.editor.. many people will say notepad. for assembler one could always use a hex editor but getting the .exe header right might be a problem.

#5 User is offline   Didier Stevens 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 594
  • Joined: 12-October 10
  • Gender:Male

Posted 23 February 2012 - 02:03 PM

What syntax is used in the material you are using to study assembly?

MASM and NASM use different syntaxes. It's easier to use the assembler with the syntax that is used in your tutorials.
Didier Stevens
http://blog.DidierStevens.com
Microsoft MVP 2011-2012 Consumer Security
Posted Image

#6 User is offline   Didier Stevens 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 594
  • Joined: 12-October 10
  • Gender:Male

Posted 23 February 2012 - 02:09 PM

View PostDavidWJ, on 20 February 2012 - 02:25 AM, said:

for assembler one could always use a hex editor


Actually, you would use an hex editor for machine code, not for assembly code.

Assembly language uses mnemonics for instructions, like this one 'pop ebx'.
In machine code, the instructions and operands are bytes.
For example, the machine code for 'pop ebx' in x86 is one byte: 5B

An assembler like NASM translates assembly code into machine code.
A CPU executes machine code, not assembly code.

This post has been edited by Didier Stevens: 23 February 2012 - 02:09 PM

Didier Stevens
http://blog.DidierStevens.com
Microsoft MVP 2011-2012 Consumer Security
Posted Image

#7 User is offline   Romeo29 

  • Learning To Bleep
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,834
  • Joined: 06-July 08
  • Gender:Not Telling
  • Location:127.0.0.1

Posted 23 February 2012 - 08:51 PM

As far as I know, MASM32 is only for Windows and not Linux. I have not used any other assemblers, so no idea about them.

#8 User is offline   Didier Stevens 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 594
  • Joined: 12-October 10
  • Gender:Male

Posted 24 February 2012 - 05:09 AM

View PostRomeo29, on 23 February 2012 - 08:51 PM, said:

As far as I know, MASM32 is only for Windows and not Linux. I have not used any other assemblers, so no idea about them.


Correct. Although it could be that Wine can be used to run MASM on Linux.

NASM runs on Linux, Windows, ...

A tip: Wikipedia has many pages comparing all kinds of products.
There's one for assemblers: https://en.wikipedia.org/wiki/Comparison_of_assemblers
Didier Stevens
http://blog.DidierStevens.com
Microsoft MVP 2011-2012 Consumer Security
Posted Image

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users