汇编语言的多行注释

来源:百度知道 编辑:UC知道 时间:2024/06/05 14:18:00
用这个“comment!”行吗

不同的汇编编译器有不同的注释,你用的是什么编译器??

GNU as 支持 /* */

nasm,masm,tasm 不支持多行注释
你可以
; comment
; comment
; comment
; comment
来实现

如果注释过长不能在一行完成,那么应该在第1列单独起一行,但不宜频繁使用以防淹没代码行.如果是多行注释可以写成注释块,注释块与代码行以空注释行相分隔如下所示:
;
; In-line comment block. On rare occasions, an extended comment
; is needed to explain some important aspect of a program. Each
; line of the extended comment starts with a semicolon. A line
; with nothing but a semicolon in column 1 is used above and
; below the block comment to set it apart from code.

;多用几个就可以了