[汇编语言]-注释

masm5.0编辑器,汇编语言注释

(1) 单行注释用;,注释行之前使用英文状态下的分号;
  mov al,ds:[6]  ;内存ds:[6]的内容送入al中

(2) 批量,多行注释
  comment *
  * comment 成对出现

 1 assume cs:code
 2 code segment
 3     mov ax,0ffffH
 4     mov ds,ax
 5     mov bx,0
 6     
 7     mov dx,0
 8     
 9 comment *
10     mov cx,12
11   s:mov al,[bx]
12     mov ah,0
13     add dx,ax
14     inc bx
15     loop s
16 * comment
17     
18     mov ax,4c00H
19     int 21h
20     
21 code ends
22 end

 

 

 

 

posted @ 2014-02-11 11:14  galoishelley  阅读(2308)  评论(0编辑  收藏  举报