Answers for "comment in assembly language"

1

comment in assembly language

In assembly, comments are usually denoted by a semicolon ;
 although GAS uses # for single line comments 
 and /* … */ for block comments possibly spanning multiple lines.

Here is an example:

	xor rax, rax                          ; rax ≔ false
	
	; divisibility by four
	test rcx, 3                           ; are the two right-most bits set?
	jnz done                              ; yes ⇒ not divisible by 4
	
	setz al                               ; al ≔ ZF  [i.e. `true`, since `jnz` above]
	…
Posted by: Guest on September-16-2021

Code answers related to "comment in assembly language"

Browse Popular Code Answers by Language