Optional parameters: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) (→{{header|6502 Assembly}}: misunderstood the task so I removed the entry) |
||
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}}== |