Loops/For with a specified step: Difference between revisions

(Add task to Arm assembly Raspberry pi)
Line 1,931:
].
Transcript showCr: 'enough with the cheering already!'</lang>
 
=={{header|Spin}}==
{{works with|BST/BSTC}}
{{works with|FastSpin/FlexSpin}}
{{works with|HomeSpun}}
{{works with|OpenSpin}}
<lang spin>con
_clkmode = xtal1 + pll16x
_clkfreq = 80_000_000
 
obj
ser : "FullDuplexSerial.spin"
 
pub main | n
ser.start(31, 30, 0, 115200)
 
repeat n from 0 to 19 step 3
ser.dec(n)
ser.tx(32)
 
waitcnt(_clkfreq + cnt)
ser.stop
cogstop(0)</lang>
{{out}}
<pre>
0 3 6 9 12 15 18
</pre>
 
=={{header|SPL}}==
169

edits