Sorting algorithms/Heapsort: Difference between revisions
m
→{{header|360 Assembly}}: Superfluous blanks suppressed
PatGarrett (talk | contribs) (→{{header|360 Assembly}}: Section added) |
PatGarrett (talk | contribs) m (→{{header|360 Assembly}}: Superfluous blanks suppressed) |
||
Line 64:
{{trans|PL/I}}
The program uses ASM structured macros and two ASSIST macros (XDECO, XPRNT) to keep the code as short as possible.
<lang 360asm>* Heap sort 22/06/2016
HEAPS CSECT
USING HEAPS,R13 base register
Line 199 ⟶ 198:
N DC A((N-A)/L'A) number of items
YREGS
END HEAPS</lang>
{{out}}
<pre>
-31 0 1 2 2 4 45 58 65 69 74 82 82 83 88 89 99 104 112 782
</pre>
=={{header|ActionScript}}==
|