MIPS, ARM and X86 Assembly Comments

Comments in ARM and X86 Assembly is similar whereas it’s different in Mips Assembly. The basic question in beginners mind arise is why comments are used?

Comments in Assembly programming are used because:

  • It helps the coder a better understanding of the program.
  • Sometimes it is impossible to understand an assembly program without comments
  • It helps the newbies to understand what the instruction is about.

Comments are not necessary, they are optional. It’s better for beginner to use comments while experts can avoide using comments. Comments in ARM, X86, and MIPS are explained below.

Comments in ARM

Comments in ARM assembly are represented by a Semicolon(;). It can be seen below:

Comments in MIPS

Comments in MIPS assembly are represented by a Hash(#). It can be seen below:

Comments in x86

Comments in X86 assembly are also represented by a Semicolon(;). It can be seen below:

If you have any question regarding comments in assembly feel free to ask in the comment box.

Nauman Rehmat
 

Nauman Rehmat is the owner of Assembly Language Tuts.He is interested in Programming and SEO. He is also pursuing a degree in Computer Software Engineering from Comsats.