Optional parameters: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Sort.reverse is now Lst.reverse.)
Line 23: Line 23:
* [[Named Arguments]]
* [[Named Arguments]]
<br><br>
<br><br>

=={{header|6502 Assembly}}==
Not all assemblers allow this, but many of them let you omit an operand for <code>ASL</code>,<code>LSR</code>,<code>ROL</code>, or <code>ROR</code>, and if you do, it is assumed that the operand is the accumulator.
<lang 6502asm>ASL ;arithmetic shift left (multiplies A by 2.)</lang>


=={{header|Ada}}==
=={{header|Ada}}==