Using as: D10V-Chars

Next: D10V-Regs, Previous: D10V-Subs, Up: D10V-Syntax [Contents][Index]

#### 9.9.2.3 Special Characters

A semicolon (‘`;`’) can be used anywhere on a line to start a comment that extends to the end of the line.

If a ‘`#`’ appears as the first character of a line, the whole line is treated as a comment, but in this case the line could also be a logical line number directive (see Comments) or a preprocessor control command (see Preprocessing).

Sub-instructions may be executed in order, in reverse-order, or in parallel. Instructions listed in the standard one-per-line format will be executed sequentially. To specify the executing order, use the following symbols:

‘`->`’

  Sequential with instruction on the left first.

‘`<-`’

  Sequential with instruction on the right first.

‘`||`’

  Parallel

The D10V syntax allows either one instruction per line, one instruction per line with the execution symbol, or two instructions per line. For example

`abs a1 -> abs r0`

  Execute these sequentially. The instruction on the right is in the right container and is executed second.

`abs r0 <- abs a1`

  Execute these reverse-sequentially. The instruction on the right is in the right container, and is executed first.

`ld2w r2,@r8+ || mac a0,r0,r7`

  Execute these in parallel.

`ld2w r2,@r8+ ||`
`mac a0,r0,r7`

  Two-line format. Execute these in parallel.

`ld2w r2,@r8+`
`mac a0,r0,r7`

  Two-line format. Execute these sequentially. Assembler will put them in the proper containers.

`ld2w r2,@r8+ ->`
`mac a0,r0,r7`

  Two-line format. Execute these sequentially. Same as above but second instruction will always go into right container.

Since ‘`$`’ has no special meaning, you may use it in symbol names.

Next: D10V-Regs, Previous: D10V-Subs, Up: D10V-Syntax [Contents][Index]