Sorting algorithms/Bubble sort: Difference between revisions

Line 127:
 
: bubble { addr cnt -- }
cnt 01 DO
addr cnt i - cells bounds DO
i 2@ > if i 2@ swap i 2! then
Line 136:
 
: bubble ( addr cnt -- )
dup 01 DO
2dup i - cells bounds DO
i 2@ > if i 2@ swap i 2! then
Anonymous user