Loops/Downward for: Difference between revisions
Content added Content deleted
(Loops/Downward for in Asymptote) |
Puppydrum64 (talk | contribs) |
||
Line 861: | Line 861: | ||
</pre> |
</pre> |
||
=={{header|Computer/zero Assembly}}== |
|||
<lang 6502asm>LDA 28 |
|||
SUB 29 |
|||
STA 31 |
|||
STA 28 |
|||
BRZ 6 ;branch on zero to STP |
|||
JMP 0 |
|||
STP |
|||
... |
|||
org 28 |
|||
byte 11 |
|||
byte 1 |
|||
byte 0</lang> |
|||
{{out}}[http://www.edmundgriffiths.com/czero.html?hexdump=3c9d5f5ca6c0e00000000000000000000000000000000000000000000b01000a Emulator with program loaded] |
|||
=={{header|Crystal}}== |
=={{header|Crystal}}== |
||
<lang crystal>10.step(to: 0, by: -1).each { |i| |
<lang crystal>10.step(to: 0, by: -1).each { |i| |