X86 Accumulation Comments

 25 July 17:46   

    When autograph code, it is actual accessible to use some comments to explain what is traveling on. A animadversion is a area of approved argument that the assembler ignores if axis the accumulation cipher into the apparatus code. In assembly, comments are usually denoted with a semicolon ;.

    Here is an example:

     Label1:

     mov ax, bx ;we move ax into bx

     add ax, bx ;add the capacity of bx into ax

     ...

    Everything afterwards the semicolon, on the aforementioned line, is ignored. Lets appearance addition example:

     Label1:

     mov ax, bx

     ;mov cx, ax

     ...

    Here, the assembler never sees the additional apprenticeship mov cx, ax, because it ignores aggregate afterwards the semicolon.

    The HLA assembler aswell has the adeptness to address comments in C or C++ style, but we deceit use the semicolons. This is because in HLA, the semicolons are acclimated at the end of every instruction:

     mov(ax, bx); //This is a C++ comment.

     / This is a C comment

     C++ comments go all the way to the end of the line, but C comments go on for some curve from the /* all the way until the */. For a bigger compassionate of C and C++ comments in HLA, see the and the books.

 


Tags: assembly, comments

 comments, assembly, semicolon, assembler, , assembly comments, x86 assembly comments,

Share X86 Accumulation Comments: Digg it!   Google Bookmarks   Del.icio.us   Yahoo! MyWeb   Furl  Binklist   Reddit!   Stumble Upon   Technorati   Windows Live   Bookmark

Text link code :
Hyper link code:

Also see ...

Permalink
Article In : Computers & Technology  -  Programming