Special characters: Difference between revisions

Line 2,643:
*Star(*): rest of, forever: [0..*], [1,*]
*Underline(_): valid in a name but also used as a throw away: a,_,c=...
 
=={{header|Z80 Assembly}}==
* <code>$</code> or <code>&</code> represents a hexadecimal quantity, e.g. <code>&C000</code>
* <code>%</code> represents a binary quantity.
* <code>z</code>, <code>nz</code>: In <code>JP/JR/CALL/RET</code>, this represents that the zero flag is set (equals 1) or clear (equals 0) respectively.
* <code>c</code>, <code>nc</code>: In <code>JP/JR/CALL/RET</code>, this represents that the carry flag is set (equals 1) or clear (equals 0) respectively.
* <code>pe</code>, <code>po</code>: In <code>JP/JR/CALL/RET</code>, this represents that the parity/overflow flag is set (equals 1) or clear (equals 0) respectively. Unfortunately, the same syntax is used regardless of what the flag is representing.
* <code>m</code>, <code>p</code>: In <code>JP/JR/CALL/RET</code>, this represents that the sign flag is set (equals 1) or clear (equals 0) respectively.
* <code>'</code> represents a shadow register (e.g. <code>BC'</code>,<code>DE'</code>,<code>HL'</code>, or <code>AF'</code>.)
* <code>$</code> or <code>*</code>, when used as the operand of an instruction, can represent the current program counter value, e.g. <code>jp *</code> creates an endless loop, and <code>ld (*+2),a</code> stores the accumulator at the address two bytes after this instruction.
* <code><</code> and <code>></code> represent "the low byte of" and "the high byte of," respectively. For example, if you type <code><&1234</code> the assembler will replace this with <code>&34</code>.
 
 
[[Category: Syntax elements]]
1,489

edits