complex-docs/docs/original/comandor-04.txt

22 lines
871 B
Plaintext

4. Commentary.
══════════════
The commentary are used for explanation of one or another
command functioning, or the whole program as a general, as
well as for "commenting" some checking command.
Begin sign of commentary is a special symbol
'\'.
The assembler ignores all meeting symbols before the next
symbol '\' or to the next line. For instance:
\ short example of the program \
{ add RB,X,Z; } \ load X in R10
{ add R11,Y,Z; } \ load Y in R11
{ add RQ,R10,Z; \ rewrite X in RQ
cjp l1,compute; } \ if number is positive that moves to
\ calculation
{ sub RQ,Z,RQ; } \ otherwise bring X to positive
{ sub R11,Z,R11; } \ convert Y for correct sign